public class DClippedPadding2D_F64 extends deepboof.impl.forward.standard.ClippedPadding2D_F64 implements DSpatialPadding2D<deepboof.tensors.Tensor_F64>, DSpatialPadding2D_F64
ClippedPadding2D_F64.| Constructor and Description |
|---|
DClippedPadding2D_F64(deepboof.forward.ConfigPadding config) |
| Modifier and Type | Method and Description |
|---|---|
void |
backwardsChannel(deepboof.tensors.Tensor_F64 gradientPadded,
int batch,
int channel,
deepboof.tensors.Tensor_F64 gradientInput)
Compute the gradient of the input image from the gradient of the padded image for a specific mini-batch and
channel of the input tensor.
|
void |
backwardsImage(deepboof.tensors.Tensor_F64 gradientPadded,
int batch,
deepboof.tensors.Tensor_F64 gradientInput)
Compute the gradient of the input image from the gradient of the padded image for a specific mini-batch and
channel of the input tensor.
|
borderGet, getClippingOffsetCol, getClippingOffsetRow, getTensorType, isClippedget, get, get, get, get, get, getDataTypecheckBackwardsShapeChannel, checkBackwardsShapeImage, getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInputcreateCoor, getDimension, getShape, isShape, lengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClippingOffsetCol, getClippingOffsetRow, getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, getTensorType, isClipped, setInput, shapeGivenInputpublic DClippedPadding2D_F64(deepboof.forward.ConfigPadding config)
public void backwardsChannel(deepboof.tensors.Tensor_F64 gradientPadded,
int batch,
int channel,
deepboof.tensors.Tensor_F64 gradientInput)
DSpatialPadding2DCompute the gradient of the input image from the gradient of the padded image for a specific mini-batch and channel of the input tensor.
backwardsChannel in interface DSpatialPadding2D<deepboof.tensors.Tensor_F64>gradientPadded - (Input) Gradient of padded image at specific mini-batch and channel. (H, W)batch - (Input) mini-batch.channel - (Input) Channel.gradientInput - (Output) Output 4D spatial tensor. Only elements used to compute the channel are modified.
(N, C, H, W)public void backwardsImage(deepboof.tensors.Tensor_F64 gradientPadded,
int batch,
deepboof.tensors.Tensor_F64 gradientInput)
DSpatialPadding2DCompute the gradient of the input image from the gradient of the padded image for a specific mini-batch and channel of the input tensor.
backwardsImage in interface DSpatialPadding2D<deepboof.tensors.Tensor_F64>gradientPadded - (Input) Gradient of padded image at specific mini-batch. (C, H, W)batch - (Input) mini-batch.gradientInput - (Output) Output 4D spatial tensor. Only elements used to compute the image are modified.
(N, C, H, W)