We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78245b0 commit 3aaa97bCopy full SHA for 3aaa97b
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/graph.py
@@ -668,7 +668,7 @@ def is_foldable(node):
668
return False
669
670
def all_tensors_const(tensors):
671
- return all([t.name in graph_constants for t in tensors])
+ return all([t.name in graph_constants for t in tensors if not t.is_empty()])
672
673
if not all_tensors_const(node.inputs):
674
0 commit comments