Struct syntaxdot_transformers::layers::PairwiseBilinear
source · [−]pub struct PairwiseBilinear { /* private fields */ }
Expand description
Pairwise bilinear forms.
Given two batches with sequence length n, apply pairwise bilinear forms to each timestep within a sequence.
Implementations
sourceimpl PairwiseBilinear
impl PairwiseBilinear
sourcepub fn new<'a>(
vs: impl Borrow<PathExt<'a>>,
config: &PairwiseBilinearConfig
) -> Result<Self, TransformerError>
pub fn new<'a>(
vs: impl Borrow<PathExt<'a>>,
config: &PairwiseBilinearConfig
) -> Result<Self, TransformerError>
Construct a new bilinear layer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PairwiseBilinear
impl Send for PairwiseBilinear
impl !Sync for PairwiseBilinear
impl Unpin for PairwiseBilinear
impl UnwindSafe for PairwiseBilinear
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