Struct syntaxdot_transformers::models::HiddenLayer
source · [−]Expand description
Hidden layer output and attention.
Fields
output: Tensor
The output of the layer.
attention: Tensor
The layer attention scores (unnormalized).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HiddenLayer
impl Send for HiddenLayer
impl !Sync for HiddenLayer
impl Unpin for HiddenLayer
impl UnwindSafe for HiddenLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more