Hi,
I have a model in TF with a ResizeBilinear operator. When I try to generate the Relay IR I get the following error:
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 2473, in from_tensorflow
mod, params = g.from_tensorflow(graph, layout, shape, outputs)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 2117, in from_tensorflow
op = self._convert_operator(node.op, inputs, attr, graph)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 2436, in _convert_operator
sym = convert_map[op_name](inputs, attrs, self._params)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 605, in _impl
size = attr['_output_shapes'][0][1:3]
TypeError: 'NoneType' object is not subscriptable
It seems that the _output_shapes
param has the value of None
.
I also found the following comments in the tensorflow.py script:
-> _output_shapes : Graph should be frozen with add_shapes=True.
Or user can pass input shape dictionary optionally.
-> DecodeJpeg, ResizeBilinear: These are dummy operators.
Hence user should handle preprocessing outside.
Maybe this is related to what the comments say.
@srkreddy1238 maybe you have an idea?
Thanks