| 67 | }; |
| 68 | |
| 69 | class CodebookLookupModule { |
| 70 | public: |
| 71 | explicit CodebookLookupModule(IndexedEmbeddingConfig config); |
| 72 | |
| 73 | const IndexedEmbeddingConfig & config() const noexcept; |
| 74 | const core::ModuleSchema & schema() const noexcept; |
| 75 | core::TensorValue build( |
| 76 | core::ModuleBuildContext & ctx, |
| 77 | const core::TensorValue & indices, |
| 78 | const core::TensorValue & weight) const; |
| 79 | static const core::ModuleSchema & static_schema() noexcept; |
| 80 | |
| 81 | private: |
| 82 | IndexedEmbeddingConfig config_; |
| 83 | }; |
| 84 | |
| 85 | } // namespace engine::modules |
no outgoing calls
no test coverage detected