public abstract class SpatialWindowImage<T extends Tensor<T>,P extends SpatialPadding2D<T>> extends BaseSpatialWindow<T,P>
BaseSpatialWindow which processes the spatial tensor is one
image in a mini batch at a time.| 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 |
|---|
SpatialWindowImage(ConfigSpatial config,
P padding) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
forwardAt_border(P padded,
int batch,
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 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 |
forwardImage(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 SpatialWindowImage(ConfigSpatial config, P padding)
protected abstract void forwardAt_inner(T input, int batch, int inY, int inX, int outY, int outX)
input - Input spatial tensorbatch - Index of input in mini-batch that is being processedinY - 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(P padded, int batch, int padY, int padX, int outY, int outX)
padded - Padded input spatial virtual tensorbatch - Index of input in mini-batch that is being processedpadY - y-axis lower extent, inclusive. Padded coordinatespadX - x-axis lower extent, inclusive. Padded coordinatesoutY - y-axis output coordinatesoutX - x-axis output coordinates