Skip to content

Commit bf1fcf2

Browse files
authored
Create Symbol with is_prim=True in _register_custom_op (#2516)
1 parent be82014 commit bf1fcf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thunder/torch/custom_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def _register_custom_op(custom_op: CustomOpDef) -> Symbol:
357357
name=fn_name,
358358
meta=meta_fn,
359359
id=op_id,
360-
is_prim=False,
360+
is_prim=True,
361361
tags=tags,
362362
)
363363
# Register both `torch.ops.my_lib.foo` and `torch.ops.my_lib.foo.default`.

0 commit comments

Comments
 (0)