Error while importing the tensorflow graph to nnvm


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.


(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/”, 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/”, line 1266, in from_tensorflow
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 is working well. Thanks again.