public abstract class SpatialPadding2D_F32 extends BaseSpatialPadding2D<Tensor_F32> implements VTensor_F32
BaseSpatialPadding2D. Provides
accessors for spatial tensors.COL0, COL1, config, input, ROW0, ROW1shape| Constructor and Description |
|---|
SpatialPadding2D_F32(ConfigPadding config) |
| Modifier and Type | Method and Description |
|---|---|
abstract float |
borderGet(int minibatch,
int channel,
int row,
int col)
Handles coordinates outside the input image
|
float |
get(int... coor)
Returns the element's value at the specified coordinate.
|
float |
get(int axis0)
Invalid accessor.
|
float |
get(int axis1,
int axis0)
Invalid accessor.
|
float |
get(int axis2,
int axis1,
int axis0)
Invalid accessor.
|
float |
get(int minibatch,
int channel,
int row,
int col)
Returns the value of the virtual padded tensor at the specified coordinate.
|
float |
get(int axis4,
int axis3,
int axis2,
int axis1,
int axis0)
Invalid accessor.
|
java.lang.Class |
getDataType()
Class of primitive data type used to store tensor |
checkBackwardsShapeChannel, checkBackwardsShapeImage, getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInputcreateCoor, getDimension, getShape, isShape, lengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCoor, getDimension, getShape, isShape, lengthgetClippingOffsetCol, getClippingOffsetRow, getTensorType, isClippedpublic SpatialPadding2D_F32(ConfigPadding config)
public abstract float borderGet(int minibatch,
int channel,
int row,
int col)
public float get(int... coor)
get in interface VTensor_F32coor - coordinate at ordered from axis-(N-1) to axis-0public float get(int axis0)
get in interface VTensor_F32axis0 - coordinate at axis-0public float get(int axis1,
int axis0)
get in interface VTensor_F32axis1 - coordinate at axis-1axis0 - coordinate at axis-0public float get(int axis2,
int axis1,
int axis0)
get in interface VTensor_F32axis2 - coordinate at axis-2axis1 - coordinate at axis-1axis0 - coordinate at axis-0public float get(int minibatch,
int channel,
int row,
int col)
get in interface VTensor_F32minibatch - mini-batch numberchannel - channel in spatial tensorrow - Row in padded coordinatescol - Column in padded coordinatespublic float get(int axis4,
int axis3,
int axis2,
int axis1,
int axis0)
get in interface VTensor_F32axis4 - coordinate at axis-4axis3 - coordinate at axis-3axis2 - coordinate at axis-2axis1 - coordinate at axis-1axis0 - coordinate at axis-0public java.lang.Class getDataType()
ITensorClass of primitive data type used to store tensorgetDataType in interface ITensor