public abstract class BaseSpatialWindow<T extends Tensor<T>,P extends SpatialPadding2D<T>> extends BaseFunction<T>
SpatialConvolve2D. Does not assume how kernels span input channels.| Modifier and Type | Field and Description |
|---|---|
protected int |
C |
protected ConfigSpatial |
config
Configuration for convolution
|
protected int |
H |
protected int |
HH |
protected int |
Ho |
protected int |
Hp |
protected int |
N |
protected P |
padding |
protected int |
W |
protected int |
Wo |
protected int |
Wp |
protected int |
WW |
miniBatchSize, parameters, shapeInput, shapeOutput, shapeParameters| Constructor and Description |
|---|
BaseSpatialWindow(ConfigSpatial config,
P padding) |
| Modifier and Type | Method and Description |
|---|---|
void |
_initialize() |
P |
getPadding() |
static int |
innerLowerExtent(int period,
int padding)
The lower extent in output coordinates for regions that are contained entirely inside the
original image.
|
static int |
innerUpperExtent(int windowLength,
int period,
int padding,
int inputLength)
The upper extent int output coordinates for regions that are contained entirely inside the
original image.
|
protected boolean |
isEntirelyBorder(int outR0,
int outC0)
Do all regions interact with the image border? The provided point is the
lower-extent of the output pixel which doesn't interact with input image border.
|
_forward, _setParameters, forward, getOutputShape, getParameters, getParameterShapes, initialize, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTensorTypeprotected ConfigSpatial config
protected int N
protected int C
protected int H
protected int W
protected int HH
protected int WW
protected int Ho
protected int Wo
protected int Hp
protected int Wp
protected P extends SpatialPadding2D<T> padding
public BaseSpatialWindow(ConfigSpatial config, P padding)
public void _initialize()
_initialize in class BaseFunction<T extends Tensor<T>>protected boolean isEntirelyBorder(int outR0,
int outC0)
outR0 - Lower-extent row in output coordinates.outC0 - Lower-extent column in output coordinates.public static int innerLowerExtent(int period,
int padding)
period - Sampling period in input tensor pixelspadding - Padding added along lower extent to input tensorpublic static int innerUpperExtent(int windowLength,
int period,
int padding,
int inputLength)
windowLength - Length of sampling window in input tensor pixelperiod - Sampling period in input tensor pixelspadding - Padding added along lower extent to input tensorinputLength - Length of the input tensorpublic P getPadding()