@@ -44,7 +44,7 @@ def setUp(self):
4444 'X' : OpTest .np_dtype_to_base_dtype (self .x ),
4545 'Y' : OpTest .np_dtype_to_base_dtype (self .y ),
4646 }
47-  self .attrs  =  {'axis' : self .axis , 'use_mkldnn' : self .use_mkldnn }
47+  self .attrs  =  {'axis' : self .axis , 'use_mkldnn' : self .use_onednn }
4848 self .outputs  =  {'Out' : self .out }
4949
5050 def  init_input_output (self ):
@@ -71,7 +71,7 @@ def init_axis(self):
7171 self .axis  =  - 1 
7272
7373 def  init_kernel_type (self ):
74-  self .use_mkldnn  =  True 
74+  self .use_onednn  =  True 
7575
7676 def  init_dtype (self ):
7777 self .dtype  =  np .float32 
@@ -225,12 +225,12 @@ def setUp(self):
225225 self .x_bf16  =  convert_float_to_uint16 (self .x )
226226 self .y_bf16  =  convert_float_to_uint16 (self .y )
227227 self .inputs  =  {'X' : self .x_bf16 , 'Y' : self .y_bf16 }
228-  self .attrs  =  {'axis' : self .axis , 'use_mkldnn' : self .use_mkldnn }
228+  self .attrs  =  {'axis' : self .axis , 'use_mkldnn' : self .use_onednn }
229229 self .outputs  =  {'Out' : convert_float_to_uint16 (self .out )}
230230
231231 def  init_dtype (self ):
232232 self .dtype  =  np .float32 
233-  self .mkldnn_data_type  =  "bfloat16" 
233+  self .onednn_data_type  =  "bfloat16" 
234234
235235 def  init_input_output (self ):
236236 self .x  =  np .random .random (
@@ -312,7 +312,7 @@ def test_check_grad_ignore_x(self):
312312# complex64, int16, float64, bfloat16, complex128, float32, int32, int64 
313313'''class TestInt8(TestOneDNNElementwiseSubOp): 
314314 def init_kernel_type(self): 
315-  self.use_mkldnn  = True 
315+  self.use_onednn  = True 
316316 self._cpu_only = True 
317317
318318 def init_dtype(self): 
0 commit comments