Skip to content

Commit

Permalink
[AutoTVM][BugFix] Fix variable name conflict with OpenCL keyword (apa…
Browse files Browse the repository at this point in the history
…che#6048)

Co-authored-by: Yanming Wang <[email protected]>
  • Loading branch information
2 people authored and Trevor Morris committed Sep 2, 2020
1 parent 6887cf2 commit 83a6afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion topi/python/topi/arm_cpu/conv2d_spatial_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def conv2d_spatial_pack_nchw(cfg, data, kernel, strides, padding, dilation,
name='data_vec')

if autotvm.GLOBAL_SCOPE.in_tuning:
kernel_vec = tvm.te.placeholder(kvshape, kernel.dtype, name="kernel")
# use "kernel_autotvm" instead of "kernel" to avoid naming conflict with OpenCL keyword
kernel_vec = tvm.te.placeholder(kvshape, kernel.dtype, name="kernel_autotvm")
else:
if pre_packed:
kernel_vec = kernel
Expand Down

0 comments on commit 83a6afc

Please sign in to comment.