Skip to content

Commit 8124b98

Browse files
committed
in opset 9, "ConstantLike" is renamed to "ConstantOfShape"
1 parent 5081424 commit 8124b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2onnx/tfonnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ def fill_op7(ctx, node, name, args):
14761476

14771477

14781478
def fill_op(ctx, node, name, args):
1479-
node.type = "ConstantLike"
1479+
node.type = "ConstantOfShape"
14801480
# both shape and value in tensorflow are passed as tensor.
14811481
# In onnx the value is an attribute so we need to fetch the value as const which
14821482
# sooner or later will be a problem for tensorflow-onnx.

0 commit comments

Comments
 (0)