From 83a6afc8902ebc6881b33b680aaa398705c53168 Mon Sep 17 00:00:00 2001 From: Yanming Wang Date: Thu, 16 Jul 2020 11:02:06 -0700 Subject: [PATCH] [AutoTVM][BugFix] Fix variable name conflict with OpenCL keyword (#6048) Co-authored-by: Yanming Wang --- topi/python/topi/arm_cpu/conv2d_spatial_pack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/topi/python/topi/arm_cpu/conv2d_spatial_pack.py b/topi/python/topi/arm_cpu/conv2d_spatial_pack.py index 8cf8401e7a07..b47583799417 100644 --- a/topi/python/topi/arm_cpu/conv2d_spatial_pack.py +++ b/topi/python/topi/arm_cpu/conv2d_spatial_pack.py @@ -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