pub struct BilinearBuilder {
pub input_dims_1: i32,
pub input_dims_2: i32,
pub output_dims: i32,
pub bias: bool,
}
Expand description
Builder for Bilinear
module
Fields§
§input_dims_1: i32
The number of input dimensions for the first input.
input_dims_2: i32
The number of input dimensions for the second input.
output_dims: i32
The number of output dimensions.
bias: bool
Whether to include bias in the bilinear layer. Default to Bilinear::DEFAULT_BIAS.
Implementations§
Trait Implementations§
Source§impl Builder<Bilinear> for BilinearBuilder
impl Builder<Bilinear> for BilinearBuilder
Source§impl Clone for BilinearBuilder
impl Clone for BilinearBuilder
Source§fn clone(&self) -> BilinearBuilder
fn clone(&self) -> BilinearBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BilinearBuilder
impl RefUnwindSafe for BilinearBuilder
impl Send for BilinearBuilder
impl Sync for BilinearBuilder
impl Unpin for BilinearBuilder
impl UnwindSafe for BilinearBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option
.