diff --git a/lite/kernels/opencl/expand_image_compute_test.cc b/lite/kernels/opencl/expand_image_compute_test.cc index 1fa046c938a4b45bec0ae9842ed51fc0805b4131..e3188777df9752c8ac6fd2849bdaddced975bda1 100644 --- a/lite/kernels/opencl/expand_image_compute_test.cc +++ b/lite/kernels/opencl/expand_image_compute_test.cc @@ -54,11 +54,11 @@ TEST(expand_hw_image2d, compute) { context->As().InitOnce(); kernel->SetParam(param); - std::unique_ptr pixel_shuffle_context(new KernelContext); + std::unique_ptr expand_context(new KernelContext); context->As().CopySharedTo( - &(pixel_shuffle_context->As())); + &(expand_context->As())); - kernel->SetContext(std::move(pixel_shuffle_context)); + kernel->SetContext(std::move(expand_context)); const DDim in_dim = DDim(std::vector{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); @@ -179,11 +179,11 @@ TEST(expand_c2hw_image2d, compute) { context->As().InitOnce(); kernel->SetParam(param); - std::unique_ptr pixel_shuffle_context(new KernelContext); + std::unique_ptr expand_context(new KernelContext); context->As().CopySharedTo( - &(pixel_shuffle_context->As())); + &(expand_context->As())); - kernel->SetContext(std::move(pixel_shuffle_context)); + kernel->SetContext(std::move(expand_context)); const DDim in_dim = DDim(std::vector{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); @@ -303,11 +303,11 @@ TEST(expand_c3hw_image2d, compute) { context->As().InitOnce(); kernel->SetParam(param); - std::unique_ptr pixel_shuffle_context(new KernelContext); + std::unique_ptr expand_context(new KernelContext); context->As().CopySharedTo( - &(pixel_shuffle_context->As())); + &(expand_context->As())); - kernel->SetContext(std::move(pixel_shuffle_context)); + kernel->SetContext(std::move(expand_context)); const DDim in_dim = DDim(std::vector{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); @@ -428,11 +428,11 @@ TEST(expand_c4hw_image2d, compute) { context->As().InitOnce(); kernel->SetParam(param); - std::unique_ptr pixel_shuffle_context(new KernelContext); + std::unique_ptr expand_context(new KernelContext); context->As().CopySharedTo( - &(pixel_shuffle_context->As())); + &(expand_context->As())); - kernel->SetContext(std::move(pixel_shuffle_context)); + kernel->SetContext(std::move(expand_context)); const DDim in_dim = DDim(std::vector{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); @@ -551,11 +551,11 @@ TEST(expand_n_image2d, compute) { context->As().InitOnce(); kernel->SetParam(param); - std::unique_ptr pixel_shuffle_context(new KernelContext); + std::unique_ptr expand_context(new KernelContext); context->As().CopySharedTo( - &(pixel_shuffle_context->As())); + &(expand_context->As())); - kernel->SetContext(std::move(pixel_shuffle_context)); + kernel->SetContext(std::move(expand_context)); const DDim in_dim = DDim(std::vector{INPUT_N, INPUT_C, INPUT_H, INPUT_W});