MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / EmbeddingModule

Class EmbeddingModule

include/engine/framework/modules/lookup_modules.h:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12};
13
14class EmbeddingModule {
15public:
16 explicit EmbeddingModule(EmbeddingConfig config);
17
18 const EmbeddingConfig & config() const noexcept;
19 const core::ModuleSchema & schema() const noexcept;
20
21 core::TensorValue build(
22 core::ModuleBuildContext & ctx,
23 const core::TensorValue & indices,
24 const core::TensorValue & weight) const;
25
26 static const core::ModuleSchema & static_schema() noexcept;
27
28private:
29 EmbeddingConfig config_;
30};
31
32struct IndexedEmbeddingConfig {
33 int64_t num_embeddings = 0;

Callers 15

buildMethod · 0.85
relative_position_biasFunction · 0.85
buildMethod · 0.85
buildMethod · 0.85
build_embeddingsFunction · 0.85
rebuildMethod · 0.85
EncoderGraphMethod · 0.85
buildMethod · 0.85
ensure_graphMethod · 0.85
ensure_graphMethod · 0.85
ensure_graphMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected