chengven027-intellif opened a new pull request, #12200:
URL: https://github.com/apache/tvm/pull/12200

   test case:
   ```
   def test_scatternd():
       def before():
           data = relay.const(np.zeros((1, 900, 300), dtype="float32"), 
dtype="float32")
           indices = relay.const(np.ones((3, 1, 900, 300), dtype="int64"), 
dtype="int64")
           update = relay.const(np.ones((1, 900, 300), dtype="float32"), 
dtype="float32")
           b = relay.op.scatter_nd(data, indices, update)
           return relay.Function(relay.analysis.free_vars(b), b)
   
       passes = tvm.transform.Sequential(
           [
               relay.transform.InferType(),
               relay.transform.FoldConstant(),
           ]
       )
       before_mod = tvm.IRModule.from_expr(before())
       with tvm.transform.PassContext(opt_level=3):
           after_mod = passes(before_mod)
   ```
   when i run the case,  I will get a Segmentation fault.
   Then I  remove the `kind` param, it can run success.
   I don't know whether the `kind` param  use 'unroll'  is better.
   


-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to