public static class SpaceToBatchLayer.Builder<T extends SpaceToBatchLayer.Builder<T>> extends Layer.Builder<T>
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
blocks
Block size for SpaceToBatch layer.
|
protected CNN2DFormat |
format |
protected int[][] |
padding
A 2d array, with format [[padTop, padBottom], [padLeft, padRight]]
|
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints| Constructor and Description |
|---|
Builder(int[] blocks) |
Builder(int[] blocks,
int[][] padding) |
| Modifier and Type | Method and Description |
|---|---|
T |
blocks(int... blocks) |
SpaceToBatchLayer |
build() |
T |
dataFormat(CNN2DFormat format)
Set the data format for the CNN activations - NCHW (channels first) or NHWC (channels last).
|
T |
name(String layerName)
Layer name assigns layer string name.
|
T |
padding(int[][] padding) |
void |
setBlocks(int... blocks) |
void |
setPadding(int[][] padding) |
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOutprotected int[] blocks
protected int[][] padding
protected CNN2DFormat format
public Builder(int[] blocks)
blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width
dimensionspublic Builder(int[] blocks,
int[][] padding)
blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width
dimensionspadding - Padding - should be a 2d array, with format [[padTop, padBottom], [padLeft, padRight]]public void setBlocks(int... blocks)
blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width
dimensionspublic void setPadding(int[][] padding)
padding - Padding - should be a 2d array, with format [[padTop, padBottom], [padLeft, padRight]]public T dataFormat(CNN2DFormat format)
CNN2DFormat for more details.format - Format for activations (in and out)public T blocks(int... blocks)
blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width
dimensionspublic T padding(int[][] padding)
padding - Padding - should be a 2d array, with format [[padTop, padBottom], [padLeft, padRight]]public T name(String layerName)
Layer.Buildername in class Layer.Builder<T extends SpaceToBatchLayer.Builder<T>>public SpaceToBatchLayer build()
build in class Layer.Builder<T extends SpaceToBatchLayer.Builder<T>>Copyright © 2020. All rights reserved.