TypeError when running the from_tensorflow example

Hi, I get the following error when running from_tensorflow tutorial example on GPU. Is there any solution for it?
Traceback (most recent call last):
File “from_tensorflow.py”, line 129, in
shape=shape_dict)
File “/usr/tvm/python/tvm/relay/frontend/tensorflow.py”, line 2349, in from_tensorflow
mod, params = g.from_tensorflow(graph, layout, shape, outputs)
File “/usr/tvm/python/tvm/relay/frontend/tensorflow.py”, line 1994, in from_tensorflow
op = self._convert_operator(node.op, inputs, attr, graph)
File “/usr/tvm/python/tvm/relay/frontend/tensorflow.py”, line 2312, in _convert_operator
sym = convert_map[op_name](inputs, attrs, self._params)
File “/usr/tvm/python/tvm/relay/frontend/tensorflow.py”, line 514, in _impl
extras={‘method’: “BILINEAR”})(inputs, attr)
File “/usr/tvm/python/tvm/relay/frontend/tensorflow.py”, line 155, in call
return _get_relay_op(op_name)(*inputs, **new_attrs)
TypeError: resize() got an unexpected keyword argument ‘half_pixel_centers’

1 Like

Hi, I faced the same error, has this solved?

I faced the same error when using TF 1.14, i solve this by using TF 1.12

1 Like

thankyou so much. This TF version change fixed my problem.

It looks like some new parameters were introduced. As a quick fix, you can add “half_pixel_centers” to the “ignores” field in _resize_bilinear.