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 2022/08/30 11:13:31 UTC

[GitHub] [tvm] guberti commented on a diff in pull request #12641: [microTVM]Fix test util functions

guberti commented on code in PR #12641:
URL: https://github.com/apache/tvm/pull/12641#discussion_r958344360


##########
python/tvm/micro/testing/evaluation.py:
##########
@@ -151,7 +152,8 @@ def predict_labels_aot(session, aot_executor, input_data, runs_per_sample=1):
     assert aot_executor.get_num_outputs() == 1
     assert runs_per_sample > 0
 
-    for sample in input_data:
+    for counter, sample in enumerate(input_data):
+        logging.info("Evaluating sample %d", counter)

Review Comment:
   Nit: use [f-strings](https://peps.python.org/pep-0498/)?
   ```suggestion
           logging.info(f"Evaluating sample {counter}")
   ```



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