pub struct Affine {
pub weight: Tensor,
pub bias: Tensor,
pub metadata: MetadataMap,
}Expand description
Affine map y = W x + b.
Fields§
§weight: TensorWeight matrix / tensor.
bias: TensorBias vector / tensor.
metadata: MetadataMapFree-form node metadata (Python metadata dict).
Trait Implementations§
impl StructuralPartialEq for Affine
Auto Trait Implementations§
impl Freeze for Affine
impl RefUnwindSafe for Affine
impl Send for Affine
impl Sync for Affine
impl Unpin for Affine
impl UnsafeUnpin for Affine
impl UnwindSafe for Affine
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