Package-level declarations
Types
Link copied to clipboard
class Embedding<OutT : DType, V>(val numEmbeddings: Int, val embeddingDim: Int, initWeight: Tensor<OutT, V>, val paddingIdx: Int? = null, val name: String = "Embedding") : DualModule<Int32, OutT, V> , ModuleParameters<OutT, V>
Embedding layer as a DualModule: consumes integer index tensors (Int32) and produces floating outputs (OutT). Supports optional paddingIdx which zeros the corresponding embedding row.
Link copied to clipboard