pub struct DropBlock { /* private fields */ }Expand description
DropBlock regularization (Ghiasi et al., 2018).
Drops contiguous regions (blocks) rather than individual elements. More effective for convolutional networks than standard dropout.
§Reference
Ghiasi, G., et al. (2018). DropBlock: A regularization technique for CNNs.
Implementations§
Trait Implementations§
Source§impl Module for DropBlock
impl Module for DropBlock
Source§fn parameters_mut(&mut self) -> Vec<&mut Tensor>
fn parameters_mut(&mut self) -> Vec<&mut Tensor>
Get mutable references to all learnable parameters. Read more
Source§fn refresh_caches(&mut self)
fn refresh_caches(&mut self)
Refresh any cached computations after parameters have been modified. Read more
Source§fn num_parameters(&self) -> usize
fn num_parameters(&self) -> usize
Get the number of learnable parameters.
Auto Trait Implementations§
impl !Freeze for DropBlock
impl RefUnwindSafe for DropBlock
impl Send for DropBlock
impl Sync for DropBlock
impl Unpin for DropBlock
impl UnsafeUnpin for DropBlock
impl UnwindSafe for DropBlock
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
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