Error while importing the tensorflow graph to nnvm


#1

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


#2

Can print shape content ?


#3

The fixing:


#4

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


#5

Pls check with this patch.


#6

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