Hi,
I’m trying to import tf graph to Relay, but the error happens at the Tile
node. It seems that the error occurs in the function.
def _tile():
def _impl(inputs, attr, params):
reps = _get_list_param(params, inputs.pop())
new_input = []
new_input.append(inputs.pop(0))
return AttrCvt(
op_name='tile',
extras={'reps': tuple(reps)},
ignores=['Tmultiples'])(new_input, attr)
return _impl
Does anyone know how to solve this error?
error message:
Traceback (most recent call last):
File "from_tensorflow_yolo.py", line 175, in <module>
shape=shape_dict)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 2675, in from_tensorflow
mod, params = g.from_tensorflow(graph, layout, shape, outputs)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 2310, in from_tensorflow
op = self._convert_operator(node.op, inputs, attr, graph)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 2637, in _convert_operator
sym = convert_map[op_name](inputs, attrs, self._params)
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 781, in _impl
reps = _get_list_param(params, inputs.pop())
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 105, in _get_list_param
return _get_param(params, input_node).tolist()
File "/home/user/tvm/python/tvm/relay/frontend/tensorflow.py", line 87, in _get_param
return params.pop(input_node.name_hint).asnumpy()
File "/home/user/tvm/python/tvm/_ffi/object.py", line 68, in __getattr__
"%s has no attribute %s" % (str(type(self)), name))
AttributeError: <class 'tvm.relay.expr.Call'> has no attribute name_hint
Related issues: https://github.com/apache/incubator-tvm/issues/4262