merrymercy commented on a change in pull request #7143:
URL: https://github.com/apache/tvm/pull/7143#discussion_r548440024
##########
File path: tests/python/relay/test_auto_scheduler_tuning.py
##########
@@ -23,6 +23,15 @@
from test_auto_scheduler_task_extraction import get_network
+class CustomMeasureCallback(auto_scheduler.measure.PythonBasedMeasureCallback):
+ """A simple Python-based callback for testing."""
+
+ def callback(self, policy, inputs, results):
+ assert isinstance(policy, auto_scheduler.search_policy.SketchPolicy)
+ for inp, res in zip(inputs, results):
+ print(policy, inp, res)
+
+
Review comment:
```suggestion
```
Delete useless old code
----------------------------------------------------------------
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:
[email protected]