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