提交 7f22d9f0 编写于 作者: xiebaiyuan's avatar xiebaiyuan

[OPENCL] fix expand test context name, test=develop

上级 b9f9a2d5
...@@ -54,11 +54,11 @@ TEST(expand_hw_image2d, compute) { ...@@ -54,11 +54,11 @@ TEST(expand_hw_image2d, compute) {
context->As<OpenCLContext>().InitOnce(); context->As<OpenCLContext>().InitOnce();
kernel->SetParam(param); kernel->SetParam(param);
std::unique_ptr<KernelContext> pixel_shuffle_context(new KernelContext); std::unique_ptr<KernelContext> expand_context(new KernelContext);
context->As<OpenCLContext>().CopySharedTo( context->As<OpenCLContext>().CopySharedTo(
&(pixel_shuffle_context->As<OpenCLContext>())); &(expand_context->As<OpenCLContext>()));
kernel->SetContext(std::move(pixel_shuffle_context)); kernel->SetContext(std::move(expand_context));
const DDim in_dim = const DDim in_dim =
DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W});
...@@ -179,11 +179,11 @@ TEST(expand_c2hw_image2d, compute) { ...@@ -179,11 +179,11 @@ TEST(expand_c2hw_image2d, compute) {
context->As<OpenCLContext>().InitOnce(); context->As<OpenCLContext>().InitOnce();
kernel->SetParam(param); kernel->SetParam(param);
std::unique_ptr<KernelContext> pixel_shuffle_context(new KernelContext); std::unique_ptr<KernelContext> expand_context(new KernelContext);
context->As<OpenCLContext>().CopySharedTo( context->As<OpenCLContext>().CopySharedTo(
&(pixel_shuffle_context->As<OpenCLContext>())); &(expand_context->As<OpenCLContext>()));
kernel->SetContext(std::move(pixel_shuffle_context)); kernel->SetContext(std::move(expand_context));
const DDim in_dim = const DDim in_dim =
DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W});
...@@ -303,11 +303,11 @@ TEST(expand_c3hw_image2d, compute) { ...@@ -303,11 +303,11 @@ TEST(expand_c3hw_image2d, compute) {
context->As<OpenCLContext>().InitOnce(); context->As<OpenCLContext>().InitOnce();
kernel->SetParam(param); kernel->SetParam(param);
std::unique_ptr<KernelContext> pixel_shuffle_context(new KernelContext); std::unique_ptr<KernelContext> expand_context(new KernelContext);
context->As<OpenCLContext>().CopySharedTo( context->As<OpenCLContext>().CopySharedTo(
&(pixel_shuffle_context->As<OpenCLContext>())); &(expand_context->As<OpenCLContext>()));
kernel->SetContext(std::move(pixel_shuffle_context)); kernel->SetContext(std::move(expand_context));
const DDim in_dim = const DDim in_dim =
DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W});
...@@ -428,11 +428,11 @@ TEST(expand_c4hw_image2d, compute) { ...@@ -428,11 +428,11 @@ TEST(expand_c4hw_image2d, compute) {
context->As<OpenCLContext>().InitOnce(); context->As<OpenCLContext>().InitOnce();
kernel->SetParam(param); kernel->SetParam(param);
std::unique_ptr<KernelContext> pixel_shuffle_context(new KernelContext); std::unique_ptr<KernelContext> expand_context(new KernelContext);
context->As<OpenCLContext>().CopySharedTo( context->As<OpenCLContext>().CopySharedTo(
&(pixel_shuffle_context->As<OpenCLContext>())); &(expand_context->As<OpenCLContext>()));
kernel->SetContext(std::move(pixel_shuffle_context)); kernel->SetContext(std::move(expand_context));
const DDim in_dim = const DDim in_dim =
DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W});
...@@ -551,11 +551,11 @@ TEST(expand_n_image2d, compute) { ...@@ -551,11 +551,11 @@ TEST(expand_n_image2d, compute) {
context->As<OpenCLContext>().InitOnce(); context->As<OpenCLContext>().InitOnce();
kernel->SetParam(param); kernel->SetParam(param);
std::unique_ptr<KernelContext> pixel_shuffle_context(new KernelContext); std::unique_ptr<KernelContext> expand_context(new KernelContext);
context->As<OpenCLContext>().CopySharedTo( context->As<OpenCLContext>().CopySharedTo(
&(pixel_shuffle_context->As<OpenCLContext>())); &(expand_context->As<OpenCLContext>()));
kernel->SetContext(std::move(pixel_shuffle_context)); kernel->SetContext(std::move(expand_context));
const DDim in_dim = const DDim in_dim =
DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W}); DDim(std::vector<DDim::value_type>{INPUT_N, INPUT_C, INPUT_H, INPUT_W});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册