Skip to content

Commit

Permalink
fix registry
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac committed Jan 21, 2021
1 parent 5537521 commit ec7ae58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/tvm/auto_scheduler/workload_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ def serialize_workload_registry_entry(workload_key):
"""
global WORKLOAD_FUNC_REGISTRY

if workload_key in WORKLOAD_FUNC_REGISTRY:
return (workload_key, WORKLOAD_FUNC_REGISTRY[workload_key])

workload = json.loads(workload_key)
name = workload[0]
value = WORKLOAD_FUNC_REGISTRY[name]
Expand Down

0 comments on commit ec7ae58

Please sign in to comment.