Hello, I have a very similar problem I was trying to implement deeplabv3plus using this code - https://github.com/keras-team/keras-io/blob/master/examples/vision/deeplabv3_plus.py The model compiles in tensorflow, also able to convert to onnx but finally when I run this function
mod, params = relay.frontend.from_onnx(onnx_model, shape={input_name : input_shape}) I get this error: AttributeErrorTraceback (most recent call last) /usr/local/lib/python3.6/dist-packages/tvm/runtime/object.py in __getattr__(self, name) 62 try: ---> 63 return _ffi_node_api.NodeGetAttr(self, name) 64 except AttributeError: tvm/_ffi/_cython/./packed_func.pxi in tvm._ffi._cy3.core.PackedFuncBase.__call__() tvm/_ffi/_cython/./packed_func.pxi in tvm._ffi._cy3.core.FuncCall() tvm/_ffi/_cython/./packed_func.pxi in tvm._ffi._cy3.core.FuncCall3() tvm/_ffi/_cython/./base.pxi in tvm._ffi._cy3.core.CALL() AttributeError: Traceback (most recent call last): 3: TVMFuncCall 2: _ZNSt17_Function_handlerI 1: tvm::NodeGetAttr(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) 0: tvm::ReflectionVTable::GetAttr(tvm::runtime::Object*, tvm::runtime::String const&) const File "/home/a0230315/workarea/psdkra_git/tvm/src/node/reflection.cc", line 109 AttributeError: relay.Call object has no attributed name_hint During handling of the above exception, another exception occurred: AttributeErrorTraceback (most recent call last) <ipython-input-24-ed42b17ea32c> in <module> ----> 1 mod, params = relay.frontend.from_onnx(onnx_model, shape={input_name : input_shape}) /usr/local/lib/python3.6/dist-packages/tvm/relay/frontend/onnx.py in from_onnx(model, shape, dtype, opset, freeze_params) 3636 # Use the graph proto as a scope so that ops can access other nodes if needed. 3637 with g: -> 3638 mod, params = g.from_onnx(graph, opset) 3639 return mod, params /usr/local/lib/python3.6/dist-packages/tvm/relay/frontend/onnx.py in from_onnx(self, graph, opset, get_output_expr) 3422 attr["tvm_custom"]["num_outputs"] = len(node_output) 3423 -> 3424 op = self._convert_operator(op_name, inputs, attr, opset) 3425 if not isinstance(op, _expr.TupleWrapper): 3426 outputs_num = 1 /usr/local/lib/python3.6/dist-packages/tvm/relay/frontend/onnx.py in _convert_operator(self, op_name, inputs, attrs, opset) 3551 sym = get_relay_op(op_name)(*inputs, **attrs) 3552 elif op_name in convert_map: -> 3553 sym = convert_map[op_name](inputs, attrs, self._params) 3554 else: 3555 raise NotImplementedError("Operator {} not implemented.".format(op_name)) /usr/local/lib/python3.6/dist-packages/tvm/relay/frontend/onnx.py in _impl_v11(cls, inputs, attr, params) 2316 ), "One of scale or size should be passed, not both." 2317 size = inputs[3] -> 2318 known_size = params[size.name_hint].asnumpy().astype("int32") 2319 out_size = (known_size[2], known_size[3]) 2320 else: /usr/local/lib/python3.6/dist-packages/tvm/runtime/object.py in __getattr__(self, name) 63 return _ffi_node_api.NodeGetAttr(self, name) 64 except AttributeError: ---> 65 raise AttributeError("%s has no attribute %s" % (str(type(self)), name)) 66 67 def __hash__(self): AttributeError: <class 'tvm.relay.expr.Call'> has no attribute name_hint Please help ! --- [Visit Topic](https://discuss.tvm.apache.org/t/tensorflow-attributeerror-class-tvm-relay-expr-call-has-no-attribute-name-hint/5770/11) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/3ff455f73eb439a0b53370559ca61ae886d519b3d2ec6c37deac8e4bbf4291a2).