@@ -67,7 +67,7 @@ void Test_Pool2d_Transpose_NHWC(const std::string &transpose_type) {
6767 {{" pooling_type" , {std::string (" max" )}},
6868 {" ksize" , {ksize}},
6969 {" data_format" , {std::string (" NHWC" )}},
70- {" use_mkldnn " , {true }}});
70+ {" use_onednn " , {true }}});
7171
7272 auto axis = std::vector<int >(4 , 0 );
7373 axis[1 ] = 2 ;
@@ -77,7 +77,7 @@ void Test_Pool2d_Transpose_NHWC(const std::string &transpose_type) {
7777 transpose_type,
7878 {{" X" , {" y" }}},
7979 {{" Out" , {" z" }}},
80- {{" axis" , {axis}}, {" use_mkldnn " , {true }}});
80+ {{" axis" , {axis}}, {" use_onednn " , {true }}});
8181
8282 op_pool->Run (scope, p);
8383 op_transpose->Run (scope, p);
@@ -130,7 +130,7 @@ TEST(test_pool2d_relu_relu_nhwc, cpu_place) {
130130 {{" pooling_type" , {std::string (" max" )}},
131131 {" ksize" , {ksize}},
132132 {" data_format" , {std::string (" NHWC" )}},
133- {" use_mkldnn " , {true }}});
133+ {" use_onednn " , {true }}});
134134
135135 auto axis = std::vector<int >(4 , 0 );
136136 axis[1 ] = 2 ;
@@ -140,10 +140,10 @@ TEST(test_pool2d_relu_relu_nhwc, cpu_place) {
140140 " relu" ,
141141 {{" X" , {" y" }}},
142142 {{" Out" , {" u" }}},
143- {{" axis" , {axis}}, {" use_mkldnn " , {false }}});
143+ {{" axis" , {axis}}, {" use_onednn " , {false }}});
144144
145145 auto op_relu2 = framework::OpRegistry::CreateOp (
146- " relu" , {{" X" , {" u" }}}, {{" Out" , {" z" }}}, {{" use_mkldnn " , {true }}});
146+ " relu" , {{" X" , {" u" }}}, {{" Out" , {" z" }}}, {{" use_onednn " , {true }}});
147147
148148 op_pool->Run (scope, p);
149149 op_relu1->Run (scope, p);
@@ -192,10 +192,10 @@ TEST(test_pool2d_shape_nhwc, cpu_place) {
192192 {{" pooling_type" , {std::string (" max" )}},
193193 {" ksize" , {ksize}},
194194 {" data_format" , {std::string (" NHWC" )}},
195- {" use_mkldnn " , {true }}});
195+ {" use_onednn " , {true }}});
196196
197197 auto op_shape = framework::OpRegistry::CreateOp (
198- " shape" , {{" Input" , {" y" }}}, {{" Out" , {" z" }}}, {{" use_mkldnn " , {true }}});
198+ " shape" , {{" Input" , {" y" }}}, {{" Out" , {" z" }}}, {{" use_onednn " , {true }}});
199199
200200 op_pool->Run (scope, p);
201201 op_shape->Run (scope, p);
0 commit comments