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.
2 parents 9ec80aa + ff1da1c commit 3383ff9Copy full SHA for 3383ff9
tf2onnx/shape_inference.py
@@ -51,9 +51,13 @@ def check_shape_for_tf_graph(tf_graph):
51
Check whether TF graph misses any shape,
52
and return all ops with None shape outputs for TF graph.
53
"""
54
+ skip_list = {'FusedBatchNormV3': 5}
55
op_outputs_mapping_none_shape = defaultdict(list)
56
for op in tf_graph.get_operations():
- for out in op.outputs:
57
+ for i, out in enumerate(op.outputs):
58
+ if op.type in skip_list:
59
+ if skip_list[op.type] == i:
60
+ continue
61
if get_tf_tensor_shape(out) is None:
62
op_outputs_mapping_none_shape[op.name].append(out.name)
63
return op_outputs_mapping_none_shape
0 commit comments