Package ai.djl.ndarray.index.dim
Class NDIndexAll
java.lang.Object
ai.djl.ndarray.index.dim.NDIndexAll
- All Implemented Interfaces:
NDIndexElement
An
NDIndexElement to return all values in a particular dimension.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetRank()Returns the number of dimensions occupied by this index element.
-
Constructor Details
-
NDIndexAll
public NDIndexAll()
-
-
Method Details
-
getRank
public int getRank()Returns the number of dimensions occupied by this index element.- Specified by:
getRankin interfaceNDIndexElement- Returns:
- the number of dimensions occupied by this index element
-