Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Mishra <[email protected]>
  • Loading branch information
mayank31398 committed Dec 18, 2024
1 parent 456526c commit 7870978
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cute_kernels/cute_inductor/swiglu_unchunked.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@


def replace_swiglu_unchunked(gm: GraphModule, node: Node) -> None:
if node.op == CALL_METHOD and node.target == torch.chunk.__name__:
print(node.args, node.kwargs)
if not (node.op == CALL_METHOD and node.target == torch.chunk.__name__):
return

chunks = node.kwargs.get("chunks", node.args[1])
if chunks != 2:
return

# if len(node.args) == 2 and node.args[1] == 2:
# with gm.graph.inserting_after(node):
# # Create a new node for the custom chunk_silu function
Expand Down

0 comments on commit 7870978

Please sign in to comment.