pub struct PatchwiseConv2D {
pub channels_in: usize,
pub channels_out: usize,
pub k_h: usize,
pub k_w: usize,
pub w: Array2<f32>,
pub b: Array1<f32>,
pub cache: PatchwiseConv2DCache,
pub grads: PatchwiseConv2DGrads,
}Fields§
§channels_in: usize§channels_out: usize§k_h: usize§k_w: usize§w: Array2<f32>§b: Array1<f32>§cache: PatchwiseConv2DCache§grads: PatchwiseConv2DGradsImplementations§
Trait Implementations§
Source§impl Clone for PatchwiseConv2D
impl Clone for PatchwiseConv2D
Source§impl Debug for PatchwiseConv2D
impl Debug for PatchwiseConv2D
Source§impl<'de> Deserialize<'de> for PatchwiseConv2D
impl<'de> Deserialize<'de> for PatchwiseConv2D
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PatchwiseConv2D
impl Serialize for PatchwiseConv2D
Source§impl ToIntermediates for PatchwiseConv2D
impl ToIntermediates for PatchwiseConv2D
fn intermediates(&mut self) -> Vec<&mut dyn Intermediate>
fn stash_intermediates(&mut self) -> Vec<ArrayD<f32>>
fn apply_intermediates(&mut self, intermediates_b: Vec<ArrayD<f32>>)
Source§impl ToParams for PatchwiseConv2D
impl ToParams for PatchwiseConv2D
fn params(&mut self) -> Vec<Param>
fn zero_grads(&mut self)
fn dump(&mut self) -> Vec<TensorData>
fn load(&mut self, params: Vec<TensorData>)
fn persist(&mut self, path: &str) -> Result<(), Box<dyn Error>>
fn restore(&mut self, path: &str) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Forget for PatchwiseConv2D
impl Freeze for PatchwiseConv2D
impl Move for PatchwiseConv2D
impl RefUnwindSafe for PatchwiseConv2D
impl Send for PatchwiseConv2D
impl Sync for PatchwiseConv2D
impl Unpin for PatchwiseConv2D
impl UnsafeUnpin for PatchwiseConv2D
impl UnwindSafe for PatchwiseConv2D
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more