Struct burn_tensor::ops::MaxPool2dBackward
source · pub struct MaxPool2dBackward<B: Backend> {
pub x_grad: FloatTensor<B, 4>,
}
Expand description
Gradient computed during the backward pass for each tensor used by max_pool2d.
Fields§
§x_grad: FloatTensor<B, 4>
Gradient.
Implementations§
source§impl<B: Backend> MaxPool2dBackward<B>
impl<B: Backend> MaxPool2dBackward<B>
sourcepub fn new(x_grad: FloatTensor<B, 4>) -> Self
pub fn new(x_grad: FloatTensor<B, 4>) -> Self
Constructs a new MaxPool2dBackward
.
Auto Trait Implementations§
impl<B> Freeze for MaxPool2dBackward<B>
impl<B> RefUnwindSafe for MaxPool2dBackward<B>
impl<B> Send for MaxPool2dBackward<B>
impl<B> Sync for MaxPool2dBackward<B>
impl<B> Unpin for MaxPool2dBackward<B>
impl<B> UnwindSafe for MaxPool2dBackward<B>
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