Skip to content

Commit c428664

Browse files
committed
fix bug
1 parent dd3a410 commit c428664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2onnx/shape_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def infer_shape_for_node(g, node):
151151
shape_indices = g.get_shape(node.input[1])
152152
axis = node.input[2].get_tensor_value()
153153

154-
shape = shape_params[:axis] + shape_indices + shape_indices[axis + 1:]
154+
shape = shape_params[:axis] + shape_indices + shape_params[axis + 1:]
155155
g.set_shape(node.output[0], shape)
156156
return True
157157

0 commit comments

Comments
 (0)