You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/06/24 21:13:48 UTC

[GitHub] [tvm] schilkunda-amba commented on a change in pull request #8323: [Relay to Onnx][LRN]

schilkunda-amba commented on a change in pull request #8323:
URL: https://github.com/apache/tvm/pull/8323#discussion_r658286396



##########
File path: python/tvm/contrib/target/onnx.py
##########
@@ -617,6 +617,20 @@ def convert_attributes(cls, attrs):
         return {"value": 1}
 
 
+class LRN(OpConverter):
+    """Operator converter for LRN."""
+
+    @classmethod
+    def convert_attributes(cls, attrs):
+        return {
+            "alpha": attrs.alpha,
+            "beta": attrs.beta,
+            "bias": attrs.bias,
+            "size": attrs.size
+            # axis?

Review comment:
       Have added the axis check.




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

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