pub struct AlbertEncoder { /* private fields */ }
Expand description
ALBERT encoder.
This encoder uses the BERT encoder with two modifications:
- The embeddings are projected to fit the hidden layer size.
- Weights are shared between layers.
Formats the value using the given formatter.
Read more
Get the number of layers that is returned by the encoder.
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.
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.