Skip to content

Commit

Permalink
support squeeze v21
Browse files Browse the repository at this point in the history
(NB this version only adds new dtypes, see https://onnx.ai/onnx/operators/text_diff_Squeeze_13_21.html)
  • Loading branch information
meilofveeningen-rl committed Jul 1, 2024
1 parent cd98062 commit 990a60e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnx2torch/node_converters/squeeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def _(node: OnnxNode, graph: OnnxGraph) -> OperationConverterResult: # pylint:


@add_converter(operation_type='Squeeze', version=13)
@add_converter(operation_type='Squeeze', version=21)
def _(node: OnnxNode, graph: OnnxGraph) -> OperationConverterResult: # pylint: disable=unused-argument
return OperationConverterResult(
torch_module=OnnxSqueezeDynamicAxes(),
Expand Down

0 comments on commit 990a60e

Please sign in to comment.