Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/mkldnn/test_elementwise_sub_onednn_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def setUp(self):
'X': OpTest.np_dtype_to_base_dtype(self.x),
'Y': OpTest.np_dtype_to_base_dtype(self.y),
}
self.attrs = {'axis': self.axis, 'use_mkldnn': self.use_mkldnn}
self.attrs = {'axis': self.axis, 'use_mkldnn': self.use_onednn}
self.outputs = {'Out': self.out}

def init_input_output(self):
Expand All @@ -71,7 +71,7 @@ def init_axis(self):
self.axis = -1

def init_kernel_type(self):
self.use_mkldnn = True
self.use_onednn = True

def init_dtype(self):
self.dtype = np.float32
Expand Down Expand Up @@ -225,12 +225,12 @@ def setUp(self):
self.x_bf16 = convert_float_to_uint16(self.x)
self.y_bf16 = convert_float_to_uint16(self.y)
self.inputs = {'X': self.x_bf16, 'Y': self.y_bf16}
self.attrs = {'axis': self.axis, 'use_mkldnn': self.use_mkldnn}
self.attrs = {'axis': self.axis, 'use_mkldnn': self.use_onednn}
self.outputs = {'Out': convert_float_to_uint16(self.out)}

def init_dtype(self):
self.dtype = np.float32
self.mkldnn_data_type = "bfloat16"
self.onednn_data_type = "bfloat16"

def init_input_output(self):
self.x = np.random.random(
Expand Down Expand Up @@ -312,7 +312,7 @@ def test_check_grad_ignore_x(self):
# complex64, int16, float64, bfloat16, complex128, float32, int32, int64
'''class TestInt8(TestOneDNNElementwiseSubOp):
def init_kernel_type(self):
self.use_mkldnn = True
self.use_onednn = True
self._cpu_only = True

def init_dtype(self):
Expand Down
6 changes: 3 additions & 3 deletions test/mkldnn/test_fc_bf16_mkldnn_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def generate_data(self):

def setUp(self):
self.op_type = "fc"
self.use_mkldnn = True
self.mkldnn_data_type = "bfloat16"
self.use_onednn = True
self.onednn_data_type = "bfloat16"
self.force_fp32_output = False
self.generate_data()

Expand All @@ -60,7 +60,7 @@ def setUp(self):
}

self.attrs = {
'use_mkldnn': self.use_mkldnn,
'use_mkldnn': self.use_onednn,
'force_fp32_output': self.force_fp32_output,
}

Expand Down
4 changes: 2 additions & 2 deletions test/mkldnn/test_fc_mkldnn_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def create_data(self):
def setUp(self):
self.op_type = "fc"
self._cpu_only = True
self.use_mkldnn = True
self.use_onednn = True
self.create_data()
self.inputs = {
'Input': self.matrix.input,
'W': self.matrix.weights,
'Bias': self.bias,
}

self.attrs = {'use_mkldnn': self.use_mkldnn}
self.attrs = {'use_mkldnn': self.use_onednn}

self.outputs = {
'Out': fully_connected_naive(
Expand Down
Loading