public static class SpaceToBatchLayer.Builder<T extends SpaceToBatchLayer.Builder<T>> extends Layer.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected int[] |
blocks |
protected int[][] |
padding |
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 |
name(String layerName)
Layer name assigns layer string name.
|
T |
padding(int[][] padding) |
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut
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 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.Builder
name
in class Layer.Builder<T extends SpaceToBatchLayer.Builder<T>>
public SpaceToBatchLayer build()
build
in class Layer.Builder<T extends SpaceToBatchLayer.Builder<T>>
Copyright © 2018. All rights reserved.