Struct std::JiT
struct JiT {
&FloatTensor WPatchEmbed;
struct Vec<struct JiTBlock> blocks;
}A JiT model: the patch embedding and a stack of JiTBlocks. patches: [seqLen, patchDim]; cond: [1, dModel], broadcast-added to every token's embedding once, up front.
Fields
[patchDim, dModel]
Methods
-> [seqLen, dModel]
Parameterized (module.h): the embedding, then each block's weights.
= drop()
§
static struct JiT new(
unsigned long patchDim,
unsigned long dModel,
unsigned long dHidden,
unsigned long numHeads,
unsigned long depth,
)source · definition