| 37 | }; |
| 38 | |
| 39 | class RMSNormModule { |
| 40 | public: |
| 41 | explicit RMSNormModule(NormConfig config); |
| 42 | |
| 43 | const core::ModuleSchema & schema() const noexcept; |
| 44 | const NormConfig & config() const noexcept; |
| 45 | |
| 46 | core::TensorValue build( |
| 47 | core::ModuleBuildContext & ctx, |
| 48 | const core::TensorValue & input, |
| 49 | const NormWeights & weights) const; |
| 50 | |
| 51 | static const core::ModuleSchema & static_schema() noexcept; |
| 52 | |
| 53 | private: |
| 54 | NormConfig config_; |
| 55 | }; |
| 56 | |
| 57 | struct AdaptiveInstanceNorm1dConfig { |
| 58 | int64_t hidden_size = 0; |
no outgoing calls
no test coverage detected