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