taomiao opened a new issue, #16353:
URL: https://github.com/apache/tvm/issues/16353

   Thanks for participating in the TVM community! We use https://discuss.tvm.ai 
for any general usage questions and discussions. The issue tracker is used for 
actionable items such as feature proposals discussion, roadmaps, and bug 
tracking.  You are always welcomed to post on the forum first :smile_cat:
   
   Issues that are inactive for a period of time may get closed. We adopt this 
policy so that we won't lose track of actionable issues that may fall at the 
bottom of the pile. Feel free to reopen a new one if you feel there is an 
additional problem that needs attention when an old one gets closed.
   
   ### Expected behavior
   
   return IRModule
   
   ### Actual behavior
   
   Traceback (most recent call last):
     File "/home/taomiao/tvm/tests/python/my_tests/elipsis_index_put.py", line 
17, in <module>
       mod = relay.frontend.from_pytorch(jit, input_infos=[("input0", (10, 
10))])
     File "/home/taomiao/tvm/python/tvm/relay/frontend/pytorch.py", line 5239, 
in from_pytorch
       outputs = converter.convert_operators(operator_nodes, outputs, ret_name)
     File "/home/taomiao/tvm/python/tvm/relay/frontend/pytorch.py", line 4461, 
in convert_operators
       relay_out = set_span(relay_out, self.source_map[op_node])
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1216, 
in set_span
       return _SpanFiller(span).fill(sym)
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1155, 
in fill
       return self.visit(sym)
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1075, 
in visit
       return super().visit(expr)
     File "/home/taomiao/tvm/python/tvm/relay/expr_functor.py", line 48, in 
visit
       res = self.visit_call(expr)
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1091, 
in visit_call
       new_args = [self.visit(arg) for arg in call.args]
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1091, 
in <listcomp>
       new_args = [self.visit(arg) for arg in call.args]
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1075, 
in visit
       return super().visit(expr)
     File "/home/taomiao/tvm/python/tvm/relay/expr_functor.py", line 48, in 
visit
       res = self.visit_call(expr)
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1091, 
in visit_call
       new_args = [self.visit(arg) for arg in call.args]
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1091, 
in <listcomp>
       new_args = [self.visit(arg) for arg in call.args]
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1075, 
in visit
       return super().visit(expr)
     File "/home/taomiao/tvm/python/tvm/relay/expr_functor.py", line 58, in 
visit
       res = self.visit_tuple(expr)
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1114, 
in visit_tuple
       tup, [self.visit(field) for field in tup.fields], None, self._span
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1114, 
in <listcomp>
       tup, [self.visit(field) for field in tup.fields], None, self._span
     File "/home/taomiao/tvm/python/tvm/relay/frontend/common.py", line 1075, 
in visit
       return super().visit(expr)
     File "/home/taomiao/tvm/python/tvm/relay/expr_functor.py", line 76, in 
visit
       raise Exception(f"warning unhandled case: {type(expr)}")
   Exception: warning unhandled case: <class 'NoneType'>
   
   ### Environment
   
   os: ubuntu 20.02
   python: 3.9
   pytorch: 2.0
   tvm: main
   
   ### Steps to reproduce
   
   ```
   
   import torch
   from tvm import relay
   
   class Elipsis(torch.nn.Module):
       def __init__(self):
           super().__init__()
   
       def forward(self, x):
           x[..., [2]] = torch.ones(10).unsqueeze(-1)
           return x
   
   
   if __name__=="__main__":
       m = Elipsis()
       jit = torch.jit.trace(m, example_inputs=(torch.zeros(10, 10), ))
       mod = relay.frontend.from_pytorch(jit, input_infos=[("input0", (10, 
10))])
       print(mod)
   ```
   
   ### Triage
   
   Please refer to the list of label tags 
[here](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the 
relevant tags and add them below in a bullet format (example below).
   
   * needs-triage
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to