已合并
cleanCode修改 #622
huangzhiyuan创建于 7月9日
cleanCode修改 #622
已合并
huangzhiyuan创建于 7月9日
3 个文件变更+35-4
Mclassify_rule.yaml+29-2
@@ -57,14 +57,28 @@ HPTG2@ops-base:
57 non_delivery: null57 non_delivery: null
58 open_source: null58 open_source: null
59 59 
60+VC1@ops-base:
61+ src:
62+ release:
63+ style:
64+ - ops-base/pkg_inc/op_common/atvoss/elewise/
65+ - ops-base/src/op_common/atvoss/elewise/
66+ opensource_style: null
67+ kernel_style: null
68+ unrelease:
69+ test_code: null
70+ non_delivery: null
71+ open_source: null
72+ 
60VC2@ops-base:73VC2@ops-base:
61 src:74 src:
62 release:75 release:
63 style:76 style:
64- - ops-base/pkg_inc/op_common/atvoss/77+ - ops-base/pkg_inc/op_common/atvoss/reduce/
78+ - ops-base/pkg_inc/op_common/atvoss/util/
65 - ops-base/pkg_inc/op_common/op_kernel/79 - ops-base/pkg_inc/op_common/op_kernel/
66 - ops-base/include/op_common/op_kernel/80 - ops-base/include/op_common/op_kernel/
67- - ops-base/src/op_common/atvoss/81+ - ops-base/src/op_common/atvoss/reduce/
68 - ops-base/include/op_common/op_host/82 - ops-base/include/op_common/op_host/
69 opensource_style: null83 opensource_style: null
70 kernel_style: null84 kernel_style: null
@@ -72,3 +86,16 @@ VC2@ops-base:
72 test_code: null86 test_code: null
73 non_delivery: null87 non_delivery: null
74 open_source: null88 open_source: null
89+ 
90+HPTG1@ops-base:
91+ src:
92+ release:
93+ style:
94+ - ops-base/pkg_inc/op_common/atvoss/broadcast/
95+ - ops-base/src/op_common/atvoss/broadcast/
96+ opensource_style: null
97+ kernel_style: null
98+ unrelease:
99+ test_code: null
100+ non_delivery: null
101+ open_source: null
Minclude/op_common/op_host/util/bfloat16.h+1-1
@@ -37,7 +37,7 @@ struct bfloat16 {
37 // value; some TF kernels use T() as a zero value.37 // value; some TF kernels use T() as a zero value.
38 bfloat16() : value(ZERO_VALUE) {}38 bfloat16() : value(ZERO_VALUE) {}
39 39 
40- bfloat16(float v) { value = round_to_bfloat16(v).value; }40+ bfloat16(float v) : value(round_to_bfloat16(v).value) {}
41 41 
42 // Following the convention of numpy, converting between complex and42 // Following the convention of numpy, converting between complex and
43 // float will lead to loss of imag value.43 // float will lead to loss of imag value.
Mpkg_inc/op_common/atvoss/util/vec.h+5-1
@@ -202,7 +202,11 @@ struct Cast : public ElemwiseUnaryOP<R, T> {
202 AscendC::Cast(dst, src, static_cast<AscendC::RoundMode>(roundMode), count);202 AscendC::Cast(dst, src, static_cast<AscendC::RoundMode>(roundMode), count);
203#endif203#endif
204 }204 }
205- __aicore__ inline Cast(R& dst, T& scalar, int count) { dst = static_cast<R>(scalar); }205+ __aicore__ inline Cast(R& dst, T& scalar, int count)
206+ {
207+ (void)count;
208+ dst = static_cast<R>(scalar);
209+ }
206};210};
207 211 
208template <class T>212template <class T>