Error while importing the tensorflow graph to nnvm

Hi,
I am seeing the following Error while trying to import the graph to nnvm step while compiling a tensor flow model.

Can someone please help me resolve this issue.

Error

(sym,params) = dict(nnvm.frontend.from_tensorflow(graph_def, layout=layout))
DecodeJpeg: It’s a pass through, please handle preprocessing before input
Traceback (most recent call last):
File “”, line 1, in
File “/soe/jayanth5178/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/frontend/tensorflow.py”, line 1500, in from_tensorflow
sym, params = g.from_tensorflow(graph, layout, shape, outputs)
File “/soe/jayanth5178/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/frontend/tensorflow.py”, line 1266, in from_tensorflow
shape_dict.update(shape)
TypeError: cannot convert dictionary update sequence element #0 to a sequence

Can print shape content ?

The fixing:

I run into the same problem and here is the shape value:
[-1L, -1L, 3L]

Pls check with this patch.

Thanks for your quick feedback. The patch fixed the compile issue and from_tensorflow.py is working well. Thanks again.

1 Like