Package ai.djl.ndarray.index.dim
Class NDIndexBooleans
java.lang.Object
ai.djl.ndarray.index.dim.NDIndexBooleans
- All Implemented Interfaces:
NDIndexElement
An
NDIndexElement to return values based on a mask binary NDArray.-
Constructor Summary
ConstructorsConstructorDescriptionNDIndexBooleans(NDArray index) Constructs aNDIndexBooleansinstance with specified mask binary NDArray. -
Method Summary
-
Constructor Details
-
NDIndexBooleans
Constructs aNDIndexBooleansinstance with specified mask binary NDArray.- Parameters:
index- the mask binaryNDArray
-
-
Method Details
-
getIndex
Returns the mask binaryNDArray.- Returns:
- the mask binary
NDArray
-
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
-