pub struct Conv {
pub lin: Lin,
pub k: usize,
pub residual: bool,
pub relu: bool,
}Expand description
A synthesis convolution (k×k, replicate padding).
Fields§
§lin: LinWeights [out][inp][k][k] + biases, fixed point.
k: usizeKernel size (1 or 3).
residual: booly += x.
relu: boolReLU after.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Conv
impl RefUnwindSafe for Conv
impl Send for Conv
impl Sync for Conv
impl Unpin for Conv
impl UnsafeUnpin for Conv
impl UnwindSafe for Conv
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