Skip to content

Commit

Permalink
Fix batch_size
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Sep 11, 2024
1 parent ad0a96e commit 6b5b1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnx2tf/ops/Flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def make_node(
and len(graph_node_output.shape) == 2 \
and axis == input_tensor_rank - 1 \
and not isinstance(graph_node_output.shape[0], str):
cal_shape = (1, -1)
cal_shape = (graph_node_output.shape[0], -1)
elif graph_node_output.shape is not None \
and len(graph_node_output.shape) == 2 \
and axis == input_tensor_rank - 1 \
Expand Down

0 comments on commit 6b5b1f4

Please sign in to comment.