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
6 changes: 3 additions & 3 deletions test/ir/inference/test_conv_transpose_bn_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def generate_batch_norm_Variance():
'data_format': random_data_layout,
'output_size': random_output_size,
'output_padding': random_output_size,
'use_mkldnn': random_use_onednn,
'use_onednn': random_use_onednn,
'is_test': True,
},
)
Expand All @@ -160,7 +160,7 @@ def generate_batch_norm_Variance():
'is_test': True,
'trainable_statistics': False,
'data_layout': random_data_layout,
'use_mkldnn': random_use_onednn,
'use_onednn': random_use_onednn,
},
)

Expand Down Expand Up @@ -194,7 +194,7 @@ def generate_batch_norm_Variance():

def sample_predictor_configs(self, program_config):
# for onednn
if program_config.ops[0].attrs['use_mkldnn']:
if program_config.ops[0].attrs['use_onednn']:
config = self.create_inference_config(use_onednn=True)
yield config, ['conv2d_transpose_bias'], (1e-5, 1e-5)
# for cpu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def generate_batch_norm_Variance():
'data_format': random_data_layout,
'output_size': random_output_size,
'output_padding': random_output_size,
'use_mkldnn': random_use_onednn,
'use_onednn': random_use_onednn,
'is_test': True,
},
)
Expand Down Expand Up @@ -182,7 +182,7 @@ def generate_batch_norm_Variance():
'is_test': True,
'trainable_statistics': False,
'data_layout': random_data_layout,
'use_mkldnn': random_use_onednn,
'use_onednn': random_use_onednn,
},
)

Expand Down Expand Up @@ -220,7 +220,7 @@ def generate_batch_norm_Variance():

def sample_predictor_configs(self, program_config):
# for onednn
if program_config.ops[2].attrs['use_mkldnn']:
if program_config.ops[2].attrs['use_onednn']:
config = self.create_inference_config(use_onednn=True)
yield config, ['conv2d_transpose', 'elementwise_add'], (1e-5, 1e-5)
# cpu
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_mkldnn_depthwise_conv_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def generate_conv2d_Filter():
'paddings': random_paddings,
'padding_algorithm': random_padding_algorithm,
'data_format': random_data_layout,
'use_mkldnn': True,
'use_onednn': True,
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def generate_input(type):
attrs={
'trans_x': transpose_X,
'trans_y': transpose_Y,
'use_mkldnn': True,
'use_onednn': True,
},
)

Expand Down