Skip to content

Commit

Permalink
should mapping kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00-pl committed Dec 25, 2024
1 parent f58c953 commit 630b365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plai/pl_torch_compiler/plnn_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def torch_node_to_core_node(node: fx.Node, node_mapping: Callable[[fx.Node], Any
elif node.op == 'call_function':
func_name = torch_function_to_string(node.target)
args = [node_mapping(arg) for arg in node.args]
attrs = {k: v for k, v in node.kwargs.items()}
attrs = {k: node_mapping(v) for k, v in node.kwargs.items()}
if func_name == 'aten::view':
return aten_dialect.View(args[0], args[1], NamedLocation(node.name))
elif func_name == 'aten::detach':
Expand Down

0 comments on commit 630b365

Please sign in to comment.