LanguageModelOutput

lamp.nn.languagemodel.LanguageModelOutput
case class LanguageModelOutput(encoded: Variable, languageModelLogits: Variable)

Output of LM

Value parameters

encoded

encoded: float tensor of size (batch, sequence length, embedding dimension) holds per token embeddings

languageModelLogits

float tensor of size (batch, sequence length, vocabulary size) holds per token logits. Use logSoftMax(dim=2) to get log probabilities.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product