MCPcopy Create free account
hub / github.com/deepjavalibrary/djl / size

Method size

api/src/main/java/ai/djl/ndarray/NDArray.java:215–215  ·  view source on GitHub ↗

Returns the size of this NDArray along a given axis. @param axis the axis to return the size for @return the size of this NDArray along a given axis

(int axis)

Source from the content-addressed store, hash-verified

213 * @return the size of this {@code NDArray} along a given axis
214 */
215 default long size(int axis) {
216 return getShape().size(axis);
217 }
218

Callers 15

testTrainMethod · 0.95
testSplitUnevenDataMethod · 0.95
forwardInternalMethod · 0.95
getOutputShapesMethod · 0.95
forwardInternalMethod · 0.95
accuracyHelperMethod · 0.95
accuracyHelperMethod · 0.95
accuracyHelperMethod · 0.95
updateAccumulatorsMethod · 0.95
accuracyHelperMethod · 0.95
initializeMethod · 0.95

Implementers 4

NDArrayAdapterapi/src/main/java/ai/djl/ndarray/NDArr
RsNDArrayextensions/tokenizers/src/main/java/ai
TfNDArrayengines/tensorflow/tensorflow-engine/s
PtNDArrayengines/pytorch/pytorch-engine/src/mai

Calls

no outgoing calls

Tested by 15

testTrainMethod · 0.76
testSplitUnevenDataMethod · 0.76
testIValueMethod · 0.76
getTestCountMethod · 0.52
testEncoderMethod · 0.52
hasNextMethod · 0.52
compareParametersMethod · 0.52
testRandomSamplerMethod · 0.52