comaniac commented on a change in pull request #4644: [WIP] Relay op strategy
URL: https://github.com/apache/incubator-tvm/pull/4644#discussion_r372693044
##########
File path: python/tvm/autotvm/task/dispatcher.py
##########
@@ -481,8 +412,12 @@ def _query_inside(self, target, workload):
"""
if self._counter < len(self._records):
cfg = self._records[self._counter][0].config
+ wkl = self._records[self._counter][0].task.workload
+ if workload is not None:
+ assert wkl == workload
self._counter += 1
- self.update(target, workload, cfg)
+ self.update(target, wkl, cfg)
+ cfg.workload = wkl
Review comment:
Where is `cfg.workload` initialized? I didn't find a definition in
`ConfigSpace`. Also what's the purpose to have a workload field in a config
space?
----------------------------------------------------------------
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]
With regards,
Apache Git Services