tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

ValidationError: Input index 3 must be set to consumed for operator BatchNormalization

Open Enjia opened this issue 6 years ago • 1 comments

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: image Can anybody tell me why? Maybe because of the different machine?

Enjia avatar Jul 27 '18 09:07 Enjia

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'

cinastanbean avatar Aug 22 '18 08:08 cinastanbean