Skip to content

Commit

Permalink
Use make_tensor_sequence_value_info instead of deprecated make_sequen…
Browse files Browse the repository at this point in the history
…ce_value_info (#1930)

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
  • Loading branch information
jcwchen authored May 17, 2022
1 parent a64af2e commit 772dbe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf2onnx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def make_onnx_inputs_outputs(name, elem_type, shape, **kwargs):
if elem_type is None:
elem_type = onnx_pb.TensorProto.UNDEFINED
elif isinstance(elem_type, SeqType):
return helper.make_sequence_value_info(name, elem_type.dtype, make_onnx_shape(shape), **kwargs)
return helper.make_tensor_sequence_value_info(name, elem_type.dtype, make_onnx_shape(shape), **kwargs)
return helper.make_tensor_value_info(
name,
elem_type,
Expand Down

0 comments on commit 772dbe6

Please sign in to comment.