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