Package deepboof.impl.backward.standard
Class DSpatialMaxPooling_F64
java.lang.Object
deepboof.impl.forward.standard.BaseFunction<T>
deepboof.impl.forward.standard.BaseSpatialWindow<T,VT>
deepboof.impl.forward.standard.SpatialWindowChannel<T,P>
deepboof.impl.backward.standard.DSpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>
deepboof.impl.backward.standard.DSpatialMaxPooling_F64
- All Implemented Interfaces:
deepboof.DFunction<deepboof.tensors.Tensor_F64>,deepboof.Function<deepboof.tensors.Tensor_F64>
public class DSpatialMaxPooling_F64 extends DSpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>
Implementation of
dpadding is a 2D tensor of the spatial region only. In the forwards pass the partial coordinate's index is saved and the batch + channel indexes are implicit saved in the output index tensor.
DSpatialPadding2D_F64 for Tensor_F64 that extends DSpatialWindowChannel.
Comments:dpadding is a 2D tensor of the spatial region only. In the forwards pass the partial coordinate's index is saved and the batch + channel indexes are implicit saved in the output index tensor.
-
Field Summary
Fields inherited from class deepboof.impl.backward.standard.DSpatialWindowChannel
dpadding, learningModeFields inherited from class deepboof.impl.forward.standard.SpatialWindowChannel
outputFields 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 DSpatialMaxPooling_F64(deepboof.forward.ConfigSpatial config, DSpatialPadding2D_F64 padding) -
Method Summary
Modifier and Type Method Description protected void_backwards(deepboof.tensors.Tensor_F64 input, deepboof.tensors.Tensor_F64 dout, deepboof.tensors.Tensor_F64 gradientInput, List<deepboof.tensors.Tensor_F64> gradientParameters)void_forward(deepboof.tensors.Tensor_F64 input, deepboof.tensors.Tensor_F64 output)void_setParameters(List<deepboof.tensors.Tensor_F64> parameters)protected voidbackwardsAt_border(DSpatialPadding2D_F64 padded, int batch, int channel, int padY, int padX, int outY, int outX)Applies the backwards local window operation.protected voidbackwardsAt_inner(deepboof.tensors.Tensor_F64 input, int batch, int channel, int inY, int inX, int outY, int outX)Applies the backwards local window operation.protected voidforwardAt_border(DSpatialPadding2D_F64 padded, int batch, int channel, int padY, int padX, int outY, int outX)protected voidforwardAt_inner(deepboof.tensors.Tensor_F64 input, int batch, int channel, int inY, int inX, int outY, int outX)Methods inherited from class deepboof.impl.backward.standard.DSpatialWindowChannel
backwards, backwardsChannel, evaluating, getTensorType, isLearning, learningMethods inherited from class deepboof.impl.forward.standard.SpatialWindowChannel
forwardChannelMethods inherited from class deepboof.impl.forward.standard.BaseSpatialWindow
_initialize, getPadding, innerLowerExtent, innerUpperExtent, isEntirelyBorderMethods inherited from class deepboof.impl.forward.standard.BaseFunction
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
forward, getOutputShape, getParameters, getParameterShapes, initialize, setParameters
-
Constructor Details
-
DSpatialMaxPooling_F64
public DSpatialMaxPooling_F64(deepboof.forward.ConfigSpatial config, DSpatialPadding2D_F64 padding)
-
-
Method Details
-
_setParameters
- Specified by:
_setParametersin classdeepboof.impl.forward.standard.BaseFunction<deepboof.tensors.Tensor_F64>
-
_forward
public void _forward(deepboof.tensors.Tensor_F64 input, deepboof.tensors.Tensor_F64 output)- Specified by:
_forwardin classdeepboof.impl.forward.standard.BaseFunction<deepboof.tensors.Tensor_F64>
-
_backwards
protected void _backwards(deepboof.tensors.Tensor_F64 input, deepboof.tensors.Tensor_F64 dout, deepboof.tensors.Tensor_F64 gradientInput, List<deepboof.tensors.Tensor_F64> gradientParameters)- Specified by:
_backwardsin classDSpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>
-
backwardsAt_inner
protected void backwardsAt_inner(deepboof.tensors.Tensor_F64 input, int batch, int channel, int inY, int inX, int outY, int outX)Description copied from class:DSpatialWindowChannelApplies the backwards local window operation. The padded gradient (dpadding) should be computed here. The input gradient will be found later on- Specified by:
backwardsAt_innerin classDSpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>- Parameters:
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 coordinate
-
backwardsAt_border
protected void backwardsAt_border(DSpatialPadding2D_F64 padded, int batch, int channel, int padY, int padX, int outY, int outX)Description copied from class:DSpatialWindowChannelApplies the backwards local window operation. The padded gradient (dpadding) should be computed here. The input gradient will be found later on- Specified by:
backwardsAt_borderin classDSpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>- Parameters:
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 coordinate
-
forwardAt_inner
protected void forwardAt_inner(deepboof.tensors.Tensor_F64 input, int batch, int channel, int inY, int inX, int outY, int outX)- Specified by:
forwardAt_innerin classdeepboof.impl.forward.standard.SpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>
-
forwardAt_border
protected void forwardAt_border(DSpatialPadding2D_F64 padded, int batch, int channel, int padY, int padX, int outY, int outX)- Specified by:
forwardAt_borderin classdeepboof.impl.forward.standard.SpatialWindowChannel<deepboof.tensors.Tensor_F64,DSpatialPadding2D_F64>
-