From 7f22d9f0f201052adc4c22f036203c621f919482 Mon Sep 17 00:00:00 2001 From: xiebaiyuan Date: Fri, 12 Jun 2020 15:17:00 +0800 Subject: [PATCH] [OPENCL] fix expand test context name, test=develop --- .../opencl/expand_image_compute_test.cc | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lite/kernels/opencl/expand_image_compute_test.cc b/lite/kernels/opencl/expand_image_compute_test.cc index 1fa046c938..e3188777df 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}); -- GitLab