| Package | Description |
|---|---|
| org.nd4j.autodiff.functions | |
| org.nd4j.autodiff.samediff.ops | |
| org.nd4j.linalg.api.ops.impl.transforms | |
| org.nd4j.linalg.factory |
| Modifier and Type | Method and Description |
|---|---|
SDVariable |
DifferentialFunctionFactory.pad(SDVariable input,
SDVariable padding,
Pad.Mode mode,
double padValue) |
| Modifier and Type | Method and Description |
|---|---|
SDVariable |
SDNN.pad(String outputName,
SDVariable input,
SDVariable padding,
Pad.Mode mode,
double constant)
As per
SDNN.pad(SDVariable, SDVariable, double) but also supports multiple Pad.Mode modes.Example: Input array: [1, 2] [3, 4] [5, 6] Padding array: [2, 0] [1, 1] Contant = 0 Result: CONSTANT mode [0, 0, 0, 0] [0, 0, 0, 0] [0, 1, 2, 0] [0, 3, 4, 0] [0, 5, 6, 0] Result: SYMMETRIC mode [3, 3, 4, 4] [1, 1, 2, 2] [1, 1, 2, 2] [3, 3, 4, 4] [5, 5, 6, 6] Result: REFLECT: [6, 5, 6, 0] [2, 3, 4, 3] [2, 1, 2, 1] [4, 3, 4, 3] [6, 5, 6, 5] |
| Modifier and Type | Method and Description |
|---|---|
static Pad.Mode |
Pad.Mode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pad.Mode[] |
Pad.Mode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
Pad(INDArray in,
INDArray padding,
INDArray out,
Pad.Mode mode,
double padValue) |
Pad(SameDiff sd,
SDVariable in,
SDVariable padding,
Pad.Mode mode,
double padValue) |
| Modifier and Type | Method and Description |
|---|---|
static INDArray |
Nd4j.pad(INDArray toPad,
INDArray padWidth,
Pad.Mode padMode,
double padValue)
Pad the given ndarray to the size along each dimension.
|
static INDArray |
Nd4j.pad(INDArray toPad,
int[][] padWidth,
Pad.Mode padMode,
double padValue)
See
#pad(INDArray, INDArray, Mode, double). |
static INDArray |
Nd4j.pad(INDArray toPad,
int[] padWidth,
Pad.Mode padMode,
double padValue)
See
#pad(INDArray, INDArray, Mode, double), uses padWidth for all dimensions. |
Copyright © 2019. All rights reserved.