pub struct BertLayer<T: Tensor> { /* private fields */ }Expand description
TODO
Implementations§
Source§impl<T: Tensor + BertOps<T>> BertLayer<T>
impl<T: Tensor + BertOps<T>> BertLayer<T>
Sourcepub fn new(attention: BertAttention<T>, mlp: Mlp<T>) -> Self
pub fn new(attention: BertAttention<T>, mlp: Mlp<T>) -> Self
TODO
Sourcepub fn forward(&self, ctx: &mut BertContext<T>) -> Result<(), SmeltError>
pub fn forward(&self, ctx: &mut BertContext<T>) -> Result<(), SmeltError>
TODO
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BertLayer<T>where
T: Freeze,
impl<T> RefUnwindSafe for BertLayer<T>where
T: RefUnwindSafe,
impl<T> Send for BertLayer<T>where
T: Send,
impl<T> Sync for BertLayer<T>where
T: Sync,
impl<T> Unpin for BertLayer<T>where
T: Unpin,
impl<T> UnwindSafe for BertLayer<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more