pub struct DepthwiseSeparableConv { /* private fields */ }Expand description
Depthwise Separable Convolution
Efficient convolution used in MobileNet architectures:
- Depthwise convolution: one filter per input channel
- Pointwise convolution: 1x1 conv to mix channels
Reduces parameters from O(K^2 * C_in * C_out) to O(K^2 * C_in + C_in * C_out)
Implementations§
Source§impl DepthwiseSeparableConv
impl DepthwiseSeparableConv
Trait Implementations§
Source§impl Clone for DepthwiseSeparableConv
impl Clone for DepthwiseSeparableConv
Source§fn clone(&self) -> DepthwiseSeparableConv
fn clone(&self) -> DepthwiseSeparableConv
Returns a duplicate 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 moreSource§impl Debug for DepthwiseSeparableConv
impl Debug for DepthwiseSeparableConv
Auto Trait Implementations§
impl Freeze for DepthwiseSeparableConv
impl RefUnwindSafe for DepthwiseSeparableConv
impl Send for DepthwiseSeparableConv
impl Sync for DepthwiseSeparableConv
impl Unpin for DepthwiseSeparableConv
impl UnsafeUnpin for DepthwiseSeparableConv
impl UnwindSafe for DepthwiseSeparableConv
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