Open Ark-kun opened 3 years ago
Can't open/unzip the onnx model file. Please double check and share again. Thanks.
Can't open/unzip the onnx model file. Please double check and share again. Thanks.
@chinhuang007
You do not need to unzip it. Just rename it to model.onnx
.
The onnx model doesn't seem to be valid. The sub-graph for node "If_4" has a Gemm node that can't pass ONNX runtime shape inference validation. You can run this simple code to see the error.
import onnx
import onnxruntime.backend as ort
onnx_path = 'model.onnx'
model = onnx.load(onnx_path)
rt_rep = ort.prepare(model)
Describe the bug
I cannot convert a simple dense network from PyTorch to Tensorflow through ONNX.
To Reproduce
ONNX model file
model.onnx.as.zip
Python, ONNX, ONNX-TF, Tensorflow version
This section can be obtained by running
get_version.py
from util folder.Additional context
Here is how I've converted the PyTorch model to ONNX (used 'pytorch/pytorch:1.7.1-cuda11.0-cudnn8-runtime'):