Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Oct 4, 2022
1 parent 5bb8754 commit a0cb1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnx2tf/ops/Unsqueeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def make_node(
axes = [
convert_axis(
axis=idx,
tensor_rank=tensor_rank,
tensor_rank=tensor_rank+len(axes),
before_op_output_shape_trans=before_op_output_shape_trans,
) for idx in axes
]
elif axes is not None and isinstance(axes, np.ndarray) and len(axes.shape) == 0:
axes = convert_axis(
axis=axes,
tensor_rank=tensor_rank,
tensor_rank=tensor_rank+1,
before_op_output_shape_trans=before_op_output_shape_trans,
)
axes = list(axes[np.newaxis])
Expand Down

0 comments on commit a0cb1ad

Please sign in to comment.