One element of a tokenised neural-source representation. More...
#include <inv_token.h>
Public Member Functions | |
| InvToken () | |
| InvToken (InvTokenId _id) | |
| InvToken (InvTokenId _id, float _val) | |
Public Attributes | |
| InvTokenId | id |
| float | value |
One element of a tokenised neural-source representation.
A single token in the serialised representation of an InvSourceEstimate.
Structural tokens (section markers, metadata labels, booleans) use only the id field. Value-carrier tokens (amplitudes, positions, times) pair id with a continuous value.
For purely discrete architectures the continuous value can be quantised into a bin index and encoded as InvTokenId::QuantBinBase + bin, discarding the float.
Definition at line 223 of file inv_token.h.
|
inline |
Definition at line 228 of file inv_token.h.
|
inlineexplicit |
Definition at line 229 of file inv_token.h.
|
inline |
Definition at line 230 of file inv_token.h.
| InvTokenId INVLIB::InvToken::id |
Vocabulary token ID.
Definition at line 225 of file inv_token.h.
| float INVLIB::InvToken::value |
Continuous value (0 for structural tokens).
Definition at line 226 of file inv_token.h.