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