File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 4242namespace refactor ::onnx {
4343
4444 void register_ () {
45+ #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
4546 // clang-format off
46- #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
4747 REGISTER (BatchNormalization , BatchNormalization );
4848 REGISTER (Cast , Cast );
4949 REGISTER (Clip , Clip );
@@ -130,8 +130,8 @@ namespace refactor::onnx {
130130 REGISTER (Where , Where );
131131 REGISTER (HardSigmoid , HardSigmoid );
132132 REGISTER (Pad , Pad );
133- #undef REGISTER
134133 // clang-format on
134+ #undef REGISTER
135135 }
136136
137137}// namespace refactor::onnx
Original file line number Diff line number Diff line change 11#include " llm/operators.h"
22#include " operators/mat_mul.hh"
3+ #include " operators/rms_normalization.hh"
34
45namespace refactor ::llm {
56 using namespace frontend ;
67
78 void register_ () {
9+ #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" llm::" #NAME)
810 // 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);
1213 // clang-format on
14+ #undef REGISTER
1315 }
1416
1517}// namespace refactor::llm
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ namespace refactor::communication {
66 using namespace frontend ;
77
88 void register_ () {
9+ #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
910 // clang-format off
10- #define REGISTER (NAME, CLASS ) Operator::register_<CLASS>(" onnx::" #NAME)
1111 REGISTER (AllReduceAvg , AllReduce);
1212 REGISTER (AllReduceSum , AllReduce);
1313 REGISTER (AllReduceMin , AllReduce);
1414 REGISTER (AllReduceMax , AllReduce);
1515 REGISTER (AllReduceProd, AllReduce);
1616 REGISTER (AllGather , AllGather);
17- #undef REGISTER
1817 // clang-format on
18+ #undef REGISTER
1919 }
2020
2121}// namespace refactor::communication
You can’t perform that action at this time.
0 commit comments