Generic storage class for section‐based vocabularies. VocabStorage provides a generic foundation for storing and accessing embeddings organized into sections.
Synopsis
Declared in <llvm/Analysis/IR2Vec.h>
class VocabStorage;
Types
Name |
Description |
Iterator support for section‐based access |
Type Aliases
Name |
Description |
Map from vocabulary string keys to their embeddings. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Return a const iterator to the first embedding across all sections. |
|
Return a const iterator past the last embedding across all sections. |
|
Get vocabulary dimension |
|
Get number of sections |
|
Check if vocabulary is valid (has data) |
|
Section‐based access: Storage[sectionId][localIndex] |
|
Get total number of entries across all sections |
Static Member Functions
Name |
Description |
Parse a vocabulary section from JSON and populate the target vocabulary map. |
Created with MrDocs