blob: 306be40b8ab0cd5fb2a46c8e1e51d50ff9f933a0 [file] [log] [blame]
def op(op_name, *args, **kwargs):
"""A primitive operator
TODO: better docs here
TODO: This doesn't actually do an operation, eventually we want it to (and
trace correctly). DO NOT rely on this returning a dictionary!!!
"""
return {"name": op_name, "inputs": args, "attrs": kwargs}