File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 42
42
namespace refactor ::onnx {
43
43
44
44
void register_ () {
45
+ #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
45
46
// clang-format off
46
- #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
47
47
REGISTER (BatchNormalization , BatchNormalization );
48
48
REGISTER (Cast , Cast );
49
49
REGISTER (Clip , Clip );
@@ -130,8 +130,8 @@ namespace refactor::onnx {
130
130
REGISTER (Where , Where );
131
131
REGISTER (HardSigmoid , HardSigmoid );
132
132
REGISTER (Pad , Pad );
133
- #undef REGISTER
134
133
// clang-format on
134
+ #undef REGISTER
135
135
}
136
136
137
137
}// namespace refactor::onnx
Original file line number Diff line number Diff line change 1
1
#include " llm/operators.h"
2
2
#include " operators/mat_mul.hh"
3
+ #include " operators/rms_normalization.hh"
3
4
4
5
namespace refactor ::llm {
5
6
using namespace frontend ;
6
7
7
8
void register_ () {
9
+ #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" llm::" #NAME)
8
10
// clang-format off
9
- #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" llm::" #NAME)
10
- REGISTER (MatMul, MatMul);
11
- #undef REGISTER
11
+ REGISTER (MatMul , MatMul );
12
+ REGISTER (RmsNormalization, RmsNormalization);
12
13
// clang-format on
14
+ #undef REGISTER
13
15
}
14
16
15
17
}// namespace refactor::llm
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ namespace refactor::communication {
6
6
using namespace frontend ;
7
7
8
8
void register_ () {
9
+ #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
9
10
// clang-format off
10
- #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
11
11
REGISTER (AllReduceAvg , AllReduce);
12
12
REGISTER (AllReduceSum , AllReduce);
13
13
REGISTER (AllReduceMin , AllReduce);
14
14
REGISTER (AllReduceMax , AllReduce);
15
15
REGISTER (AllReduceProd, AllReduce);
16
16
REGISTER (AllGather , AllGather);
17
- #undef REGISTER
18
17
// clang-format on
18
+ #undef REGISTER
19
19
}
20
20
21
21
}// namespace refactor::communication
You can’t perform that action at this time.
0 commit comments