Package deepboof.impl.forward.standard
Class SpatialWindowChannel<T extends Tensor<T>,VT extends SpatialPadding2D<T>>
java.lang.Object
deepboof.impl.forward.standard.BaseFunction<T>
deepboof.impl.forward.standard.BaseSpatialWindow<T,VT>
deepboof.impl.forward.standard.SpatialWindowChannel<T,VT>
- All Implemented Interfaces:
Function<T>
- Direct Known Subclasses:
SpatialAveragePooling_F32,SpatialAveragePooling_F64,SpatialMaxPooling_F32,SpatialMaxPooling_F64
public abstract class SpatialWindowChannel<T extends Tensor<T>,VT extends SpatialPadding2D<T>> extends BaseSpatialWindow<T,VT>
Implementation of
BaseSpatialWindow which processes the spatial tensor is processed in
BCHW (mini-batch, channel, height, width) order-
Field Summary
Fields inherited from class deepboof.impl.forward.standard.BaseSpatialWindow
C, config, H, HH, Ho, Hp, N, padding, W, Wo, Wp, WWFields inherited from class deepboof.impl.forward.standard.BaseFunction
miniBatchSize, parameters, shapeInput, shapeOutput, shapeParameters -
Constructor Summary
Constructors Constructor Description SpatialWindowChannel(ConfigSpatial config, VT padding) -
Method Summary
Modifier and Type Method Description protected abstract voidforwardAt_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 voidforwardAt_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 voidforwardChannel(T input, T output)Methods inherited from class deepboof.impl.forward.standard.BaseSpatialWindow
_initialize, getPadding, innerLowerExtent, innerUpperExtent, isEntirelyBorderMethods inherited from class deepboof.impl.forward.standard.BaseFunction
_forward, _setParameters, forward, getOutputShape, getParameters, getParameterShapes, initialize, setParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface deepboof.Function
getTensorType
-
Field Details
-
output
-
-
Constructor Details
-
SpatialWindowChannel
-
-
Method Details
-
forwardChannel
-
forwardAt_inner
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.- Parameters:
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 coordinates
-
forwardAt_border
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. For virtual tensor- Parameters:
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
-