Package ai.djl.ndarray.index.dim
Class NDIndexTake
java.lang.Object
ai.djl.ndarray.index.dim.NDIndexTake
- All Implemented Interfaces:
NDIndexElement
An
NDIndexElement that gets elements by index in the specified axis.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NDIndexTake
Constructs a pick.- Parameters:
index- the index to pick
-
-
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
-
getIndex
Returns the index to pick.- Returns:
- the index to pick
-