public abstract class DSpatialWindowChannel<T extends deepboof.Tensor<T>,P extends DSpatialPadding2D<T>>
extends deepboof.impl.forward.standard.SpatialWindowChannel<T,P>
implements deepboof.DFunction<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
dpadding |
protected boolean |
learningMode |
| Constructor and Description |
|---|
DSpatialWindowChannel(deepboof.forward.ConfigSpatial config,
P padding) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
_backwards(T input,
T dout,
T gradientInput,
java.util.List<T> gradientParameters) |
void |
backwards(T input,
T dout,
T gradientInput,
java.util.List<T> gradientParameters) |
protected abstract void |
backwardsAt_border(P padded,
int batch,
int channel,
int padY,
int padX,
int outY,
int outX)
Applies the backwards local window operation.
|
protected abstract void |
backwardsAt_inner(T input,
int batch,
int channel,
int inY,
int inX,
int outY,
int outX)
Applies the backwards local window operation.
|
void |
backwardsChannel(T input,
T gradientInput)
Convolve window across 'input' spatial tensor and compute its gradient
|
void |
evaluating() |
java.lang.Class<T> |
getTensorType() |
boolean |
isLearning() |
void |
learning() |
forwardAt_border, forwardAt_inner, forwardChannel_initialize, getPadding, innerLowerExtent, innerUpperExtent, isEntirelyBorder_forward, _setParameters, forward, getOutputShape, getParameters, getParameterShapes, initialize, setParameterspublic DSpatialWindowChannel(deepboof.forward.ConfigSpatial config,
P padding)
public void backwards(T input, T dout, T gradientInput, java.util.List<T> gradientParameters)
protected abstract void _backwards(T input, T dout, T gradientInput, java.util.List<T> gradientParameters)
public void backwardsChannel(T input, T gradientInput)
input - Input spatial tensorgradientInput - Storage for input's gradientprotected abstract void backwardsAt_inner(T input, int batch, int channel, int inY, int inX, int outY, int outX)
input - Input spatial tensorbatch - Index of input in mini-batch that is being processedchannel - ChannelinY - y-axis lower extent, in input tensor coordinatesinX - x-axis lower extent, in input tensor coordinatesoutY - y-axis output coordinateoutX - x-axis output coordinateprotected abstract void backwardsAt_border(P padded, int batch, int channel, int padY, int padX, int outY, int outX)
padded - Input spatial virtual tensorbatch - Index of input in mini-batch that is being processedchannel - ChannelpadY - y-axis lower extent, in padded tensor coordinatespadX - x-axis lower extent, in padded tensor coordinatesoutY - y-axis output coordinateoutX - x-axis output coordinatepublic void learning()
public void evaluating()
public boolean isLearning()