public abstract class SpatialWindowChannel<T extends Tensor<T>,VT extends SpatialPadding2D<T>> extends BaseSpatialWindow<T,VT>
BaseSpatialWindow which processes the spatial tensor is processed in
BCHW (mini-batch, channel, height, width) order| Modifier and Type | Field and Description |
|---|---|
protected T |
output |
C, config, H, HH, Ho, Hp, N, padding, W, Wo, Wp, WWminiBatchSize, parameters, shapeInput, shapeOutput, shapeParameters| Constructor and Description |
|---|
SpatialWindowChannel(ConfigSpatial config,
VT padding) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
forwardAt_border(VT padded,
int batch,
int channel,
int padY,
int padX,
int outY,
int outX)
Applies the operations at the specified window and stores the results at the specified output
coordinate.
|
protected abstract void |
forwardAt_inner(T input,
int batch,
int channel,
int inY,
int inX,
int outY,
int outX)
Applies the operations at the specified window and stores the results at the specified output
coordinate.
|
protected void |
forwardChannel(T input,
T output) |
_initialize, getPadding, innerLowerExtent, innerUpperExtent, isEntirelyBorder_forward, _setParameters, forward, getOutputShape, getParameters, getParameterShapes, initialize, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTensorTypepublic SpatialWindowChannel(ConfigSpatial config, VT padding)
protected abstract void forwardAt_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 coordinatesinX - x-axis lower extent, in input coordinatesoutY - y-axis output coordinatesoutX - x-axis output coordinatesprotected abstract void forwardAt_border(VT 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 coordinatespadX - x-axis lower extent, in padded coordinatesoutY - y-axis output coordinatesoutX - x-axis output coordinates