Package deepboof.forward
Class SpatialPadding2D_F64
java.lang.Object
deepboof.BaseTensor
deepboof.impl.forward.standard.BaseSpatialPadding2D<Tensor_F64>
deepboof.forward.SpatialPadding2D_F64
- All Implemented Interfaces:
SpatialPadding2D<Tensor_F64>,ITensor,VTensor_F64,VTensor
- Direct Known Subclasses:
ClippedPadding2D_F64,ConstantPadding2D_F64
public abstract class SpatialPadding2D_F64
extends BaseSpatialPadding2D<Tensor_F64>
implements VTensor_F64
Abstract class for F64 implementations of
BaseSpatialPadding2D. Provides
accessors for spatial tensors.-
Field Summary
Fields inherited from class deepboof.impl.forward.standard.BaseSpatialPadding2D
COL0, COL1, config, input, ROW0, ROW1Fields inherited from class deepboof.BaseTensor
shape -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleborderGet(int minibatch, int channel, int row, int col) Handles coordinates outside the input imagedoubleget(int axis0) Invalid accessor.doubleget(int... coor) Returns the element's value at the specified coordinate.doubleget(int axis1, int axis0) Invalid accessor.doubleget(int axis2, int axis1, int axis0) Invalid accessor.doubleget(int minibatch, int channel, int row, int col) Returns the value of the virtual padded tensor at the specified coordinate.doubleget(int axis4, int axis3, int axis2, int axis1, int axis0) Invalid accessor.Classof primitive data type used to store tensorMethods inherited from class deepboof.impl.forward.standard.BaseSpatialPadding2D
checkBackwardsShapeChannel, checkBackwardsShapeImage, getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInputMethods inherited from class deepboof.BaseTensor
createCoor, getDimension, getShape, isShape, lengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface deepboof.ITensor
createCoor, getDimension, getShape, isShape, lengthMethods inherited from interface deepboof.forward.SpatialPadding2D
getClippingOffsetCol, getClippingOffsetRow, getTensorType, isClipped
-
Constructor Details
-
SpatialPadding2D_F64
-
-
Method Details
-
borderGet
public abstract double borderGet(int minibatch, int channel, int row, int col) Handles coordinates outside the input image -
get
public double get(int... coor) Returns the element's value at the specified coordinate.- Specified by:
getin interfaceVTensor_F64- Parameters:
coor- coordinate at ordered from axis-(N-1) to axis-0- Returns:
- element value
-
get
public double get(int axis0) Invalid accessor. Only supports 4-DOF accessors.- Specified by:
getin interfaceVTensor_F64- Parameters:
axis0- coordinate at axis-0- Returns:
- element value
-
get
public double get(int axis1, int axis0) Invalid accessor. Only supports 4-DOF accessors.- Specified by:
getin interfaceVTensor_F64- Parameters:
axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-
get
public double get(int axis2, int axis1, int axis0) Invalid accessor. Only supports 4-DOF accessors.- Specified by:
getin interfaceVTensor_F64- Parameters:
axis2- coordinate at axis-2axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-
get
public double get(int minibatch, int channel, int row, int col) Returns the value of the virtual padded tensor at the specified coordinate. The coordinate can be inside or outside the original image.- Specified by:
getin interfaceVTensor_F64- Parameters:
minibatch- mini-batch numberchannel- channel in spatial tensorrow- Row in padded coordinatescol- Column in padded coordinates- Returns:
- Value of padded tensor
-
get
public double get(int axis4, int axis3, int axis2, int axis1, int axis0) Invalid accessor. Only supports 4-DOF accessors.- Specified by:
getin interfaceVTensor_F64- Parameters:
axis4- coordinate at axis-4axis3- coordinate at axis-3axis2- coordinate at axis-2axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-
getDataType
Description copied from interface:ITensorClassof primitive data type used to store tensor- Specified by:
getDataTypein interfaceITensor- Returns:
- Internal data type class.
-