Skip to content

Commit 92c24fb

Browse files
committed
remove mkconst
1 parent 3bb28a6 commit 92c24fb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tf2onnx/onnx_opset/tensor.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,11 +1257,6 @@ def mknode(optype, inputs, attrs=None):
12571257
nodename = utils.make_name(node.name + '_' + optype.lower())
12581258
return ctx.make_node(optype, inputs, attrs, name=nodename)
12591259

1260-
def mkconst(desc, val, dtype=np.int64):
1261-
nodename = utils.make_name(node.name + '_' + desc)
1262-
const_node = ctx.make_const(utils.make_name(nodename), val.astype(dtype))
1263-
return const_node.output[0]
1264-
12651260
# support non 3D/4D tensors and dynamic crop vals
12661261
# dynamic slice starts at opset 10
12671262
utils.make_sure(ctx.opset >= 11, 'non-4D tensor or non-const crops require opset 11')

0 commit comments

Comments
 (0)