| 19 | struct NormWeights { |
| 20 | std::optional<core::TensorValue> weight; |
| 21 | std::optional<core::TensorValue> bias; |
| 22 | }; |
| 23 | |
| 24 | struct ChannelAffineWeights { |
| 25 | core::TensorValue scale; |
| 26 | core::TensorValue bias; |
| 27 | }; |
| 28 | |
| 29 | class LayerNormModule { |
| 30 | public: |
| 31 | explicit LayerNormModule(NormConfig config); |
| 32 | |
| 33 | const core::ModuleSchema & schema() const noexcept; |
| 34 | const NormConfig & config() const noexcept; |
| 35 | |
| 36 | core::TensorValue build( |
| 37 | core::ModuleBuildContext & ctx, |
| 38 | const core::TensorValue & input, |
| 39 | const NormWeights & weights) const; |
| 40 |
no outgoing calls
no test coverage detected