eaten-cake opened a new pull request, #18012:
URL: https://github.com/apache/tvm/pull/18012

   Fixes #18002 
   When all dimensions of layer_norm input are reduction axes, the variable 
`non_reduce_indices` becomes empty, while the previous variable `target_shape` 
has `atleast1d` parameter enabled, causing shape inconsistency.
   
https://github.com/apache/tvm/blob/2d964b4133aac2f92e4185b3f095df4eb3bf3a90/include/tvm/topi/nn/layer_norm.h#L111-L121
   
https://github.com/apache/tvm/blob/2d964b4133aac2f92e4185b3f095df4eb3bf3a90/include/tvm/topi/nn/layer_norm.h#L67-L68
   Also added tests for reduce-only axes cases
   


-- 
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