vinx13 commented on code in PR #12935:
URL: https://github.com/apache/tvm/pull/12935#discussion_r983865571
##########
src/relay/op/nn/nn.cc:
##########
@@ -1023,7 +1023,8 @@ RELAY_REGISTER_OP("nn.layer_norm")
.set_attr<FInferCorrectLayout>("FInferCorrectLayout",
NormalizationInferCorrectLayout<LayerNormAttrs>)
.set_support_level(1)
- .add_type_rel("LayerNorm", LayerNormRel);
+ .add_type_rel("LayerNorm", LayerNormRel)
+ .set_attr<TOpPattern>("TOpPattern", kInjective);
Review Comment:
Should be kOutFusible? Because it contains reduction part, it can't be fused
into other injective ops
--
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]