Commit 01cfdb7e by Wuwei Lin Committed by Lianmin Zheng

[AUTOTVM] Use range in AnnotateSpace to fix JSON serialization (#2278)

parent df9d3ad2
......@@ -423,7 +423,7 @@ class AnnotateSpace(TransformSpace):
elif policy == 'locate_cache':
self.num_axis = len(axes)
num_anchor = kwargs["num_anchor"]
self.anns = list(itertools.combinations(np.arange(self.num_axis), num_anchor))
self.anns = list(itertools.combinations(range(self.num_axis), num_anchor))
self.entities = [AnnotateEntity(x) for x in self.anns]
else: # none, vec, unroll, try_vec, try_unroll, try_vec_unroll, ...
anns = policy.replace('try', 'none').split('_')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment