pub struct AlbertEncoder { /* private fields */ }
Expand description

ALBERT encoder.

This encoder uses the BERT encoder with two modifications:

  1. The embeddings are projected to fit the hidden layer size.
  2. Weights are shared between layers.

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Apply the encoder. Read more
Get the number of layers that is returned by the encoder.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.