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/10/28 12:29:30 UTC

[GitHub] [tvm] Leo-arm opened a new pull request #9386: [ETHOSN] Add support for non-default Ethos(TM)-N78 configurations

Leo-arm opened a new pull request #9386:
URL: https://github.com/apache/tvm/pull/9386


   - Updated tvmc with new Ethos-N78 composite target.
   - Added additional Ethos-N78 specific configuration options.
   
   Co-authored-by: Tristan O'Connor <tr...@arm.com>
   
   


-- 
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-unsubscribe@tvm.apache.org

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



[GitHub] [tvm] manupa-arm commented on pull request #9386: [ETHOSN] Add support for non-default Ethos(TM)-N78 configurations

Posted by GitBox <gi...@apache.org>.
manupa-arm commented on pull request #9386:
URL: https://github.com/apache/tvm/pull/9386#issuecomment-954539586


   Thanks @lhutton1 @Leo-arm.


-- 
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-unsubscribe@tvm.apache.org

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



[GitHub] [tvm] Leo-arm commented on a change in pull request #9386: [ETHOSN] Add support for non-default Ethos(TM)-N78 configurations

Posted by GitBox <gi...@apache.org>.
Leo-arm commented on a change in pull request #9386:
URL: https://github.com/apache/tvm/pull/9386#discussion_r738992046



##########
File path: python/tvm/relay/op/contrib/ethosn.py
##########
@@ -61,6 +61,49 @@ def partition_for_ethosn(mod, params=None, **opts):
     -------
     ret : annotated and partitioned module.
     """
+    if opts:
+        tops = opts.get("tops", None)
+        ple_ratio = opts.get("ple_ratio", None)
+        sram_size = opts.get("sram_size", None)
+        if tops or ple_ratio or sram_size:
+            raise ValueError(
+                "Setting tops, ple_ratio or sram_size has no effect when targeting Ethos(TM)-N77"
+            )
+
+    if params:
+        mod["main"] = bind_params_by_name(mod["main"], params)
+
+    seq = tvm.transform.Sequential(
+        [
+            transform.InferType(),
+            transform.MergeComposite(pattern_table()),
+            transform.AnnotateTarget("ethos-n"),
+            transform.MergeCompilerRegions(),
+            transform.PartitionGraph(),
+        ]
+    )

Review comment:
       Yes, I have noticed this too, but would suggest to do this as an follow-on patch, amongst some other cleanup I want to do.




-- 
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-unsubscribe@tvm.apache.org

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



[GitHub] [tvm] lhutton1 commented on a change in pull request #9386: [ETHOSN] Add support for non-default Ethos(TM)-N78 configurations

Posted by GitBox <gi...@apache.org>.
lhutton1 commented on a change in pull request #9386:
URL: https://github.com/apache/tvm/pull/9386#discussion_r738583577



##########
File path: python/tvm/relay/op/contrib/ethosn.py
##########
@@ -61,6 +61,49 @@ def partition_for_ethosn(mod, params=None, **opts):
     -------
     ret : annotated and partitioned module.
     """
+    if opts:
+        tops = opts.get("tops", None)
+        ple_ratio = opts.get("ple_ratio", None)
+        sram_size = opts.get("sram_size", None)
+        if tops or ple_ratio or sram_size:
+            raise ValueError(
+                "Setting tops, ple_ratio or sram_size has no effect when targeting Ethos(TM)-N77"
+            )
+
+    if params:
+        mod["main"] = bind_params_by_name(mod["main"], params)
+
+    seq = tvm.transform.Sequential(
+        [
+            transform.InferType(),
+            transform.MergeComposite(pattern_table()),
+            transform.AnnotateTarget("ethos-n"),
+            transform.MergeCompilerRegions(),
+            transform.PartitionGraph(),
+        ]
+    )

Review comment:
       This looks the same as what's in `partition_for_ethosn78`? Maybe its best to wrap this in another function rather than duplicate functionality




-- 
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-unsubscribe@tvm.apache.org

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



[GitHub] [tvm] manupa-arm merged pull request #9386: [ETHOSN] Add support for non-default Ethos(TM)-N78 configurations

Posted by GitBox <gi...@apache.org>.
manupa-arm merged pull request #9386:
URL: https://github.com/apache/tvm/pull/9386


   


-- 
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-unsubscribe@tvm.apache.org

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