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