pub struct Conv2dLayer { /* private fields */ }Expand description
2D convolution layer (FP32).
Implementations§
Trait Implementations§
Source§impl Layer for Conv2dLayer
impl Layer for Conv2dLayer
fn layer_type(&self) -> LayerType
fn set_input(&mut self, input: Tensor)
fn output(&self) -> &Tensor
fn input_ref(&self) -> &Tensor
fn weights_ref(&self) -> &Tensor
fn bias_ref(&self) -> &Tensor
fn read_weights_bias(&mut self, file: &mut File)
fn fwd(&mut self)
fn print(&self)
Auto Trait Implementations§
impl Freeze for Conv2dLayer
impl !RefUnwindSafe for Conv2dLayer
impl !Send for Conv2dLayer
impl !Sync for Conv2dLayer
impl Unpin for Conv2dLayer
impl !UnwindSafe for Conv2dLayer
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