tutorials
tutorials copied to clipboard
ValidationError: Input index 3 must be set to consumed for operator BatchNormalization
I have downloaded the dpn.onnx model (dpn stands for Dual Path Network) which was converted from pytorch model trained in server (because my local computer doesn't have any GPU, and the reason why I downloaded it from server is that the server was not allowed to connect to the Ineternet and so there was no tensorflow installed, contrary to my local computer), however I found that when I run:
'''''''''''''''''''''''
import onnx
from onnx_tf.backend import prepare
model = onnx.load('dpn.onnx')
tf_rep = prepare(model)
'''''''''''''''''''''''
an issue happened:
Can anybody tell me why? Maybe because of the different machine?
Hey, I got this question and solved it as follow:
$ pip uninstall onnx $ pip install -U git+https://github.com/onnx/onnx.git@master
the reason illustrates @ https://github.com/pytorch/pytorch/issues/6300
i test this version is ok.
onnx.version u'1.2.2'