@@ -88,9 +88,7 @@ const std::unordered_map<std::string, ExtraAttrPropertySet>
88
88
{" use_cudnn" , ExtraAttrProperty::SCHEDULE},
89
89
{" use_mkldnn" , ExtraAttrProperty::SCHEDULE},
90
90
// ONEDNN dedicated attributes
91
- {" Activation_scale" , ExtraAttrProperty::ONEDNN},
92
91
{" Bias" , ExtraAttrProperty::ONEDNN},
93
- {" Bias_scales" , ExtraAttrProperty::ONEDNN},
94
92
{" data_format" , ExtraAttrProperty::ONEDNN},
95
93
{" force_fp32_output" , ExtraAttrProperty::ONEDNN},
96
94
{" fuse_activation" , ExtraAttrProperty::ONEDNN},
@@ -112,7 +110,6 @@ const std::unordered_map<std::string, ExtraAttrPropertySet>
112
110
{" fused_transpose_X" , ExtraAttrProperty::ONEDNN},
113
111
{" fused_transpose_Y" , ExtraAttrProperty::ONEDNN},
114
112
{" mkldnn_data_type" , ExtraAttrProperty::ONEDNN},
115
- {" Output_shift_scale" , ExtraAttrProperty::ONEDNN},
116
113
{" ResidualData" , ExtraAttrProperty::ONEDNN},
117
114
{" scale_x" , ExtraAttrProperty::ONEDNN},
118
115
{" scale_y" , ExtraAttrProperty::ONEDNN},
@@ -123,9 +120,13 @@ const std::unordered_map<std::string, ExtraAttrPropertySet>
123
120
{" Scale_y" , ExtraAttrProperty::ONEDNN},
124
121
{" Scale_out" , ExtraAttrProperty::ONEDNN},
125
122
{" Scale_weights" , ExtraAttrProperty::ONEDNN},
126
- {" Sum_scale" , ExtraAttrProperty::ONEDNN},
127
123
{" x_data_format" , ExtraAttrProperty::ONEDNN},
128
124
{" y_data_format" , ExtraAttrProperty::ONEDNN},
125
+ // ONEDNN pass dedicated attributes
126
+ {" Activation_scale" , ExtraAttrProperty::ONEDNN},
127
+ {" Bias_scales" , ExtraAttrProperty::ONEDNN},
128
+ {" Output_shift_scale" , ExtraAttrProperty::ONEDNN},
129
+ {" Sum_scale" , ExtraAttrProperty::ONEDNN},
129
130
// GPUDNN dedicated attributes
130
131
{" exhaustive_search" , ExtraAttrProperty::GPUDNN},
131
132
{" fuse_relu_before_depthwise_conv" , ExtraAttrProperty::GPUDNN},
@@ -220,6 +221,7 @@ class ExtraInfoUtils {
220
221
std::vector<std::function<void (framework::AttributeMap*, bool )>>
221
222
empty_extra_attrs_checker_{};
222
223
224
+ // TODO(chenweihang): move these extra inputs into op_compat.yaml
223
225
std::unordered_map<std::string, std::vector<std::string>>
224
226
g_extra_input_names_map_ = {{" conv2d" , {" Bias" , " ResidualData" }},
225
227
{" conv2d_grad" , {" Bias" }}};
0 commit comments