Closed GoodNight-bye closed 3 years ago
Hi @GoodNight-bye, for general debugging, it would be better for you to open create a discussion post where the community can give input about what is wrong. If you have a found a specific bug, then you should create a tracking issue.
@electriclilies ,thank you for your advice, I create a new issue and provide a minimum script to reproduce the problem,Look forward to your favourable reply https://github.com/apache/tvm/issues/8374
It seems that the type with arg name % 61 of aten:: index is nonetype,so i failed to call the interface relay.frontend.from_pytorch. How should I solve this problem?
ERROE INFO: Traceback (most recent call last): File "dlrm.py", line 146, in
test_dlrm()
File "dlrm.py", line 126, in test_dlrm
mod, params = relay.frontend.from_pytorch(scripted_model, shape_list)
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 3309, in from_pytorch
ret = converter.convert_operators(_get_operator_nodes(graph.nodes()), outputs, ret_name)[0]
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 2733, in convert_operators
self.record_output_type(relay_out)
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 219, in record_output_type
self.infer_type_with_prelude(output)
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 167, in infer_type_with_prelude
body = self.infer_type(val, self.prelude.mod)
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 154, in infer_type
new_node = tf.visit(node)
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 91, in visit
v = super().visit(expr)
File "./build/tvm/python/tvm/relay/expr_functor.py", line 48, in visit
res = self.visit_call(expr)
File "./build/tvm/python/tvm/relay/expr_functor.py", line 216, in visit_call
new_args = [self.visit(arg) for arg in call.args]
File "./build/tvm/python/tvm/relay/expr_functor.py", line 216, in
new_args = [self.visit(arg) for arg in call.args]
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 91, in visit
v = super().visit(expr)
File "./build/tvm/python/tvm/relay/expr_functor.py", line 58, in visit
res = self.visit_tuple(expr)
File "./build/tvm/python/tvm/relay/expr_functor.py", line 229, in visit_tuple
return Tuple([self.visit(field) for field in tup.fields], tup.span)
File "./build/tvm/python/tvm/relay/expr_functor.py", line 229, in
return Tuple([self.visit(field) for field in tup.fields], tup.span)
File "./build/tvm/python/tvm/relay/frontend/pytorch.py", line 91, in visit
v = super().visit(expr)
File "./build/tvm/python/tvm/relay/expr_functor.py", line 77, in visit
raise Exception("warning unhandled case: {0}".format(type(expr)))
Exception: warning unhandled case: <class 'NoneType'>
TOTAL SCRIPTED MODEL GRAPH FROM PYTORCH:
DLRM source code: