onnx2torch icon indicating copy to clipboard operation
onnx2torch copied to clipboard

Convert ONNX models to PyTorch.

Results 50 onnx2torch issues
Sort by recently updated
recently updated
newest added

When converting a model from onnx to pytorch I get the error, ```----> 1 torch_model = convert(onnx_model_path) ~/.local/lib/python3.8/site-packages/onnx2torch/converter.py in convert(onnx_model_or_path, save_input_names, attach_onnx_mapping) 120 ) 121 --> 122 torch_module, onnx_mapping =...

bug

This is ipython code (at colab) which makes an error. # Code ``` # !pip install tensorflow==2.6.4 onnx==1.12.0 onnx2torch git+https://github.com/onnx/tensorflow-onnx import tensorflow as tf import onnx from onnx2torch import convert...

bug

Hi, developer team of onnx2torch. I am currently developing an neural network quantization framework: https://github.com/openppl-public/ppq/tree/master/ppq. The really interesting part is that we both need to run an onnx model with...

raise NotImplementedError('Dynamic value of min/max is not implemented')

feat

Hi, I have an onnx model. Here is one of the nodes in onnxgraph ``` node { input: "/decoder.0/layers.0/blocks.0/attn/Pow_3_output_0" input: "/decoder.0/layers.0/blocks.0/attn/Constant_13_output_0" input: "" output: "/decoder.0/layers.0/blocks.0/attn/Clip_1_output_0" name: "/decoder.0/layers.0/blocks.0/attn/Clip_1" op_type: "Clip" doc_string:...

Thank you for this library, really great tool! I have a mixed-precision ONNX model, which is based on some `OnnxCast` nodes here and there. This works fine with GPU inference,...

Hello, **Bug details:** ``` File "onnx2torch/onnx2torch/node_converters/reduce.py", line 159, in forward return torch.sum(input_tensor, dim=self._axes, keepdim=self._keepdims) TypeError: sum() received an invalid combination of arguments - got (Tensor, keepdim=int, dim=list), but expected one...

fix

I'm trying to convert [a model](https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2) from onnx to pytorch, however I'm get the following error: ```python 43 padding, padding_module = onnx_auto_pad_to_torch_padding( 44 onnx_padding=node_attributes.get('pads', [0] * spatial_rank * 2), 45...

feat

PermissionError: [Errno 13] Permission denied: 'E:\\onnx2torch\\tmptf9fub_u' On Windows platform