public class PpNDArray
extends ai.djl.ndarray.NDArrayAdapter
PpNDArray is the PaddlePaddle implementation of NDArray.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
detach() |
ai.djl.ndarray.types.DataType |
getDataType() |
long |
getHandle()
Gets the
Pointer to this resource. |
long[][] |
getLoD()
Gets the Level-of-Detail field of the NDArray.
|
java.lang.String |
getName() |
ai.djl.ndarray.types.Shape |
getShape() |
void |
intern(ai.djl.ndarray.NDArray replaced) |
void |
setLoD(long[][] lod)
Sets the Level-of-Detail field of the NDArray.
|
void |
setName(java.lang.String name) |
java.nio.ByteBuffer |
toByteBuffer() |
abs, acos, acosh, add, add, addi, addi, argMax, argMax, argMin, argMin, argSort, asin, asinh, atan, atanh, attach, batchDot, booleanMask, broadcast, cbrt, ceil, clip, contentEquals, contentEquals, copyTo, cos, cosh, cumSum, cumSum, div, div, divi, divi, dot, eq, eq, erfinv, exp, expandDims, flatten, flip, floor, getDevice, getGradient, getManager, getNDArrayInternal, getSparseFormat, getUid, gt, gt, gte, gte, hasGradient, isInfinite, isNaN, log, log10, log2, logicalAnd, logicalNot, logicalOr, logicalXor, logSoftmax, lt, lt, lte, lte, matMul, max, max, maximum, maximum, mean, mean, median, median, min, min, minimum, minimum, mod, mod, modi, modi, mul, mul, muli, muli, neg, negi, neq, neq, nonzero, norm, norm, oneHot, percentile, percentile, pow, pow, powi, powi, prod, prod, repeat, repeat, repeat, repeat, reshape, rotate90, round, sequenceMask, sequenceMask, set, set, set, set, set, setRequiresGradient, setScalar, sign, signi, sin, sinh, softmax, sort, sort, split, split, sqrt, square, squeeze, stopGradient, sub, sub, subi, subi, sum, sum, tan, tanh, tempAttach, tile, tile, tile, tile, toDegrees, toDense, toDevice, toRadians, toSparse, toString, toStringArray, toType, trace, transpose, transpose, truncclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitall, allClose, allClose, any, argSort, argSort, booleanMask, broadcast, concat, concat, countNonzero, countNonzero, decode, duplicate, encode, get, get, get, get, getBoolean, getByte, getDouble, getFloat, getInt, getLong, getScalar, getUint8, isEmpty, isScalar, isSparse, like, max, mean, min, none, norm, norm, norm, oneHot, oneHot, onesLike, prod, reshape, scaleGradient, set, set, set, set, set, shapeEquals, size, size, split, split, squeeze, squeeze, stack, stack, sum, swapAxes, toArray, toBooleanArray, toByteArray, toDebugString, toDebugString, toDoubleArray, toFloatArray, toIntArray, toLongArray, toStringArray, toUint8Array, trace, trace, zerosLikepublic void setLoD(long[][] lod)
checkout https://www.bookstack.cn/read/PaddlePaddle-1.3-fluid/27.md
lod - the Level-of-Detail representationpublic long[][] getLoD()
public java.lang.String getName()
getName in interface ai.djl.ndarray.NDArraygetName in class ai.djl.ndarray.NDArrayAdapterpublic void setName(java.lang.String name)
setName in interface ai.djl.ndarray.NDArraysetName in class ai.djl.ndarray.NDArrayAdapterpublic ai.djl.ndarray.types.DataType getDataType()
getDataType in interface ai.djl.ndarray.NDArraygetDataType in class ai.djl.ndarray.NDArrayAdapterpublic ai.djl.ndarray.types.Shape getShape()
getShape in interface ai.djl.ndarray.NDArraygetShape in class ai.djl.ndarray.NDArrayAdapterpublic void intern(ai.djl.ndarray.NDArray replaced)
public void detach()
public java.nio.ByteBuffer toByteBuffer()
public long getHandle()
Pointer to this resource.Pointer to this resourcepublic void close()
close in interface ai.djl.ndarray.NDArrayclose in interface ai.djl.ndarray.NDResourceclose in interface java.lang.AutoCloseableclose in class ai.djl.ndarray.NDArrayAdapter