TokenEmbedding

abstract class TokenEmbedding(val vocabularySize: Int, val embeddingDim: Int) : Module(source)

Inheritors

Constructors

Link copied to clipboard
constructor(vocabularySize: Int, embeddingDim: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun forward(input: Tensor): Tensor
abstract fun forward(indices: IntArray): Tensor
Link copied to clipboard
open fun forwardInto(input: Tensor, out: Tensor): Tensor
Link copied to clipboard
operator fun invoke(input: Tensor): Tensor
Link copied to clipboard
abstract fun lookupInto(token: Int, out: Tensor): Tensor
Link copied to clipboard
open fun parameters(): List<Tensor>