mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-24 06:29:09 +00:00
code format
This commit is contained in:
parent
d31e146687
commit
5de9e46381
@ -49,7 +49,9 @@ def _is_non_compute_node(node):
|
||||
|
||||
|
||||
def _is_non_compute_node_except_placeholder(node):
|
||||
if (any(i in node.op for i in ["get_attr", "output"]) or any(i in node.name for i in ["getitem", "getattr"])):
|
||||
if any(i in node.op for i in ["get_attr", "output"]) or any(
|
||||
i in node.name for i in ["getitem", "getattr"]
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user