pub struct Pooling { /* private fields */ }
Expand description
Performs pooling (max or mean) on the token embeddings.
Using pooling, it generates from a variable sized sentence a fixed sized sentence embedding. You can concatenate multiple poolings together.
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pooling
impl Send for Pooling
impl Sync for Pooling
impl Unpin for Pooling
impl UnwindSafe for Pooling
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