Skip to content

Commit

Permalink
Encode is_cpu_op as a boolean value in the converter
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed Jul 1, 2024
1 parent b8b2b74 commit 8109eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter/pytorch_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def convert_to_chakra_node(
ChakraAttr(name="tid", int64_val=pytorch_node.tid),
ChakraAttr(name="fw_tid", int64_val=pytorch_node.fw_tid),
ChakraAttr(name="op_schema", string_val=pytorch_node.op_schema),
ChakraAttr(name="is_cpu_op", int32_val=not pytorch_node.is_gpu_op()),
ChakraAttr(name="is_cpu_op", bool_val=not pytorch_node.is_gpu_op()),
]
)
return chakra_node
Expand Down

0 comments on commit 8109eac

Please sign in to comment.