public class ConstantPadding2D_F32 extends SpatialPadding2D_F32 implements ConstantPadding2D<Tensor_F32>
COL0, COL1, config, input, ROW0, ROW1shape| Constructor and Description |
|---|
ConstantPadding2D_F32(ConfigPadding config) |
ConstantPadding2D_F32(ConfigPadding config,
float value) |
| Modifier and Type | Method and Description |
|---|---|
float |
borderGet(int minibatch,
int channel,
int row,
int col)
Handles coordinates outside the input image
|
int |
getClippingOffsetCol(int paddedCol)
Returns how far away the column is from the clipping border.
|
int |
getClippingOffsetRow(int paddedRow)
Returns how far away the row is from the clipping border.
|
double |
getPaddingValue() |
java.lang.Class<Tensor_F32> |
getTensorType()
Returns the type of input tensor it can process
|
boolean |
isClipped()
Returns true if this is a clipped border or false of it is not.
|
get, get, get, get, get, get, getDataTypecheckBackwardsShapeChannel, checkBackwardsShapeImage, getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInputcreateCoor, getDimension, getShape, isShape, lengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInputcreateCoor, getDataType, getDimension, getShape, isShape, lengthpublic ConstantPadding2D_F32(ConfigPadding config)
public ConstantPadding2D_F32(ConfigPadding config, float value)
public float borderGet(int minibatch,
int channel,
int row,
int col)
SpatialPadding2D_F32borderGet in class SpatialPadding2D_F32public int getClippingOffsetRow(int paddedRow)
SpatialPadding2DgetClippingOffsetRow in interface SpatialPadding2D<Tensor_F32>paddedRow - Row in padded coordinatespublic int getClippingOffsetCol(int paddedCol)
SpatialPadding2DgetClippingOffsetCol in interface SpatialPadding2D<Tensor_F32>paddedCol - Column in padded coordinatespublic boolean isClipped()
SpatialPadding2DisClipped in interface SpatialPadding2D<Tensor_F32>public java.lang.Class<Tensor_F32> getTensorType()
SpatialPadding2DgetTensorType in interface SpatialPadding2D<Tensor_F32>public double getPaddingValue()
getPaddingValue in interface ConstantPadding2D<Tensor_F32>