Skip to content
Merged
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
6 changes: 3 additions & 3 deletions test/mkldnn/test_sum_bf16_mkldnn_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
class TestSumBF16ONEDNN(TestSumOp):
def setUp(self):
self.op_type = "sum"
self.use_mkldnn = True
self.mkldnn_data_type = "bfloat16"
self.use_onednn = True
self.onednn_data_type = "bfloat16"

# float32 input to be use for reference
x0 = np.random.random((25, 8)).astype('float32')
Expand All @@ -45,7 +45,7 @@ def setUp(self):

y = x0 + x1 + x2
self.outputs = {'Out': convert_float_to_uint16(y)}
self.attrs = {'use_mkldnn': self.use_mkldnn}
self.attrs = {'use_mkldnn': self.use_onednn}

def test_check_output(self):
self.check_output_with_place(core.CPUPlace(), check_pir_onednn=True)
Expand Down