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 2020/11/11 18:57:29 UTC

[GitHub] [incubator-tvm] tmoreau89 opened a new pull request #6901: [TFLite runtime] Allow to set number of threads to TFLite interpreter

tmoreau89 opened a new pull request #6901:
URL: https://github.com/apache/incubator-tvm/pull/6901


   Co-authored-by: FrozenGene <zh...@apache.org>
   
   This PR lets us set the number of threads used by the TFLite interpreter in order to evaluate TFLite performance over RPC at different thread counts.


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



[GitHub] [incubator-tvm] tmoreau89 commented on a change in pull request #6901: [TFLite runtime] Allow to set number of threads to TFLite interpreter

Posted by GitBox <gi...@apache.org>.
tmoreau89 commented on a change in pull request #6901:
URL: https://github.com/apache/incubator-tvm/pull/6901#discussion_r521755615



##########
File path: python/tvm/contrib/tflite_runtime.py
##########
@@ -109,3 +110,12 @@ def get_output(self, index):
             The output index
         """
         return self._get_output(index)
+
+    def set_num_threads(self, num_threads):
+        """Set the number of threads via kwargs
+        Parameters
+        ----------
+        num_threads : int
+           The number of threads
+        """
+        self._set_num_threads(num_threads)

Review comment:
       Makes sense




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



[GitHub] [incubator-tvm] FrozenGene commented on a change in pull request #6901: [TFLite runtime] Allow to set number of threads to TFLite interpreter

Posted by GitBox <gi...@apache.org>.
FrozenGene commented on a change in pull request #6901:
URL: https://github.com/apache/incubator-tvm/pull/6901#discussion_r521721976



##########
File path: python/tvm/contrib/tflite_runtime.py
##########
@@ -109,3 +110,12 @@ def get_output(self, index):
             The output index
         """
         return self._get_output(index)
+
+    def set_num_threads(self, num_threads):
+        """Set the number of threads via kwargs
+        Parameters
+        ----------
+        num_threads : int
+           The number of threads
+        """
+        self._set_num_threads(num_threads)

Review comment:
       how about adding one new line at the end of file to meet the requirement of PEP8?




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



[GitHub] [incubator-tvm] tqchen merged pull request #6901: [TFLite runtime] Allow to set number of threads to TFLite interpreter

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #6901:
URL: https://github.com/apache/incubator-tvm/pull/6901


   


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