Package deepboof.impl.forward.standard
Class SpatialConvolve2D_F64
java.lang.Object
deepboof.impl.forward.standard.BaseFunction<T>
deepboof.impl.forward.standard.BaseSpatialWindow<T,P>
deepboof.impl.forward.standard.SpatialWindowImage<Tensor_F64,SpatialPadding2D_F64>
deepboof.impl.forward.standard.SpatialConvolve2D_F64
- All Implemented Interfaces:
SpatialConvolve2D<Tensor_F64>,Function<Tensor_F64>
public class SpatialConvolve2D_F64 extends SpatialWindowImage<Tensor_F64,SpatialPadding2D_F64> implements SpatialConvolve2D<Tensor_F64>
Implementation of
SpatialConvolve2D for Tensor_F64-
Field Summary
Fields Modifier and Type Field Description protected Tensor_F64biasprotected double[]cacheLocalprotected intFprotected Tensor_F64weightsFields inherited from class deepboof.impl.forward.standard.SpatialWindowImage
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 SpatialConvolve2D_F64(ConfigConvolve2D config, SpatialPadding2D_F64 padding) -
Method Summary
Modifier and Type Method Description void_forward(Tensor_F64 input, Tensor_F64 output)void_initialize()void_setParameters(List<Tensor_F64> parameters)protected voidforwardAt_border(SpatialPadding2D_F64 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 voidforwardAt_inner(Tensor_F64 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.ConfigConvolve2DgetConfiguration()Returns configuration of spacial parametersClass<Tensor_F64>getTensorType()Returns the type of tensor it can processMethods inherited from class deepboof.impl.forward.standard.SpatialWindowImage
forwardImageMethods inherited from class deepboof.impl.forward.standard.BaseSpatialWindow
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
getOutputShape, getParameters, getParameterShapes, initializeMethods inherited from interface deepboof.forward.SpatialConvolve2D
forward, getPadding, setParameters
-
Field Details
-
F
protected int F -
weights
-
bias
-
cacheLocal
protected double[] cacheLocal
-
-
Constructor Details
-
SpatialConvolve2D_F64
-
-
Method Details
-
_initialize
public void _initialize()- Overrides:
_initializein classBaseSpatialWindow<Tensor_F64,SpatialPadding2D_F64>
-
_setParameters
- Specified by:
_setParametersin classBaseFunction<Tensor_F64>
-
_forward
- Specified by:
_forwardin classBaseFunction<Tensor_F64>
-
forwardAt_inner
Description copied from class:SpatialWindowImageApplies the operations at the specified window and stores the results at the specified output coordinate.- Specified by:
forwardAt_innerin classSpatialWindowImage<Tensor_F64,SpatialPadding2D_F64>- Parameters:
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 coordinates
-
forwardAt_border
protected void forwardAt_border(SpatialPadding2D_F64 padded, int batch, int padY, int padX, int outY, int outX)Description copied from class:SpatialWindowImageApplies the operations at the specified window and stores the results at the specified output coordinate. For virtual tensor- Specified by:
forwardAt_borderin classSpatialWindowImage<Tensor_F64,SpatialPadding2D_F64>- Parameters:
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
-
getTensorType
Description copied from interface:FunctionReturns the type of tensor it can process- Specified by:
getTensorTypein interfaceFunction<Tensor_F64>- Returns:
- Type of tensor
-
getConfiguration
Description copied from interface:SpatialConvolve2DReturns configuration of spacial parameters- Specified by:
getConfigurationin interfaceSpatialConvolve2D<Tensor_F64>- Returns:
- Copy of configuration
-