| Package | Description |
|---|---|
| org.nd4j.linalg.api.ops.impl.transforms | |
| org.nd4j.linalg.factory |
| 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(@NonNull INDArray in,
@NonNull INDArray padding,
INDArray out,
@NonNull 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(@NonNull INDArray toPad,
@NonNull INDArray padWidth,
Pad.Mode padMode,
double padValue)
Pad the given ndarray to the size along each dimension.
|
static INDArray |
Nd4j.pad(@NonNull INDArray toPad,
@NonNull int[][] padWidth,
Pad.Mode padMode,
double padValue)
See
#pad(INDArray, INDArray, Mode, double). |
static INDArray |
Nd4j.pad(@NonNull INDArray toPad,
@NonNull int[] padWidth,
Pad.Mode padMode,
double padValue)
See
#pad(INDArray, INDArray, Mode, double), uses padWidth for all dimensions. |
Copyright © 2021. All rights reserved.