@@ -208,7 +208,7 @@ def test_check_output(self):
208208 place = core .CUDAPlace (0 )
209209 self .check_output_with_place (
210210 place ,
211- check_dygraph = (not self .use_mkldnn ),
211+ check_dygraph = (not self .use_onednn ),
212212 check_pir = True ,
213213 check_pir_onednn = self .check_pir_onednn ,
214214 )
@@ -222,7 +222,7 @@ def test_check_grad_no_filter(self):
222222 ['Input' ],
223223 'Output' ,
224224 no_grad_set = {'Filter' },
225- check_dygraph = (not self .use_mkldnn ),
225+ check_dygraph = (not self .use_onednn ),
226226 user_defined_grads = [numeric_grads ],
227227 check_pir = True ,
228228 check_pir_onednn = self .check_pir_onednn ,
@@ -237,7 +237,7 @@ def test_check_grad_no_input(self):
237237 ['Filter' ],
238238 'Output' ,
239239 no_grad_set = {'Input' },
240- check_dygraph = (not self .use_mkldnn ),
240+ check_dygraph = (not self .use_onednn ),
241241 user_defined_grads = [numeric_grads ],
242242 check_pir = True ,
243243 check_pir_onednn = self .check_pir_onednn ,
@@ -253,7 +253,7 @@ def test_check_grad(self):
253253 ['Input' , 'Filter' ],
254254 'Output' ,
255255 user_defined_grads = [numeric_input_grads , numeric_filter_grads ],
256- check_dygraph = (not self .use_mkldnn ),
256+ check_dygraph = (not self .use_onednn ),
257257 check_pir = True ,
258258 check_pir_onednn = self .check_pir_onednn ,
259259 )
@@ -393,7 +393,7 @@ def setUp(self):
393393 self .op_type = "conv3d"
394394 self .python_api = conv3d_wrapper
395395 self .use_cudnn = False
396- self .use_mkldnn = False
396+ self .use_onednn = False
397397 self .data_format = "AnyLayout"
398398 self .dtype = np .float64
399399 self .init_kernel_type ()
@@ -444,7 +444,7 @@ def setUp(self):
444444 'groups' : self .groups ,
445445 'dilations' : self .dilations ,
446446 'use_cudnn' : self .use_cudnn ,
447- 'use_mkldnn' : self .use_mkldnn ,
447+ 'use_mkldnn' : self .use_onednn ,
448448 'data_format' : self .data_format ,
449449 }
450450 self .outputs = {'Output' : output }
@@ -458,7 +458,7 @@ def test_check_output(self):
458458 self .check_output_with_place (
459459 place ,
460460 atol = 1e-5 ,
461- check_dygraph = (not self .use_mkldnn ),
461+ check_dygraph = (not self .use_onednn ),
462462 check_pir = True ,
463463 check_pir_onednn = self .check_pir_onednn ,
464464 )
@@ -471,7 +471,7 @@ def test_check_grad(self):
471471 {'Input' , 'Filter' },
472472 'Output' ,
473473 max_relative_error = 0.03 ,
474- check_dygraph = (not self .use_mkldnn ),
474+ check_dygraph = (not self .use_onednn ),
475475 check_pir = True ,
476476 check_pir_onednn = self .check_pir_onednn ,
477477 )
@@ -485,7 +485,7 @@ def test_check_grad_no_filter(self):
485485 'Output' ,
486486 max_relative_error = 0.03 ,
487487 no_grad_set = {'Filter' },
488- check_dygraph = (not self .use_mkldnn ),
488+ check_dygraph = (not self .use_onednn ),
489489 check_pir = True ,
490490 check_pir_onednn = self .check_pir_onednn ,
491491 )
@@ -499,7 +499,7 @@ def test_check_grad_no_input(self):
499499 'Output' ,
500500 max_relative_error = 0.03 ,
501501 no_grad_set = {'Input' },
502- check_dygraph = (not self .use_mkldnn ),
502+ check_dygraph = (not self .use_onednn ),
503503 check_pir = True ,
504504 check_pir_onednn = self .check_pir_onednn ,
505505 )
@@ -764,7 +764,7 @@ def setUp(self):
764764 self .op_type = "conv3d"
765765 self .python_api = conv3d_wrapper
766766 self .use_cudnn = False
767- self .use_mkldnn = False
767+ self .use_onednn = False
768768 self .data_format = "NCDHW"
769769 self .dtype = np .float64
770770 self .init_kernel_type ()
@@ -804,7 +804,7 @@ def setUp(self):
804804 'groups' : self .groups ,
805805 'dilations' : self .dilations ,
806806 'use_cudnn' : self .use_cudnn ,
807- 'use_mkldnn' : self .use_mkldnn ,
807+ 'use_mkldnn' : self .use_onednn ,
808808 'data_format' : self .data_format ,
809809 }
810810 self .outputs = {'Output' : output }
0 commit comments