Package org.nd4j.linalg.api.concurrency
Interface DistributedINDArray
-
- All Known Implementing Classes:
BasicDistributedINDArray
public interface DistributedINDArray
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallocate(int entry, DataType dataType, long... shape)This method allocates INDArray for specified entryvoidallocate(int entry, LongShapeDescriptor shapeDescriptor)This method allocates INDArray for specified entryINDArrayentry()This method returns INDArray for the current device PLEASE NOTE: if you use more than one thread per device you'd better not use this method unless you're 100% sureINDArrayentry(int entry)This method returns INDArray for specific entry (i.e.ArrayTypegetINDArrayType()This method returns ArrayType for this instanceintnumActiveEntries()This method returns number of activated entriesintnumEntries()This method returns total number of entries within this DistributedINDArray instancevoidpropagate(INDArray array)This method propagates given INDArray to all entries as is
-
-
-
Method Detail
-
getINDArrayType
ArrayType getINDArrayType()
This method returns ArrayType for this instance- Returns:
-
entry
INDArray entry(int entry)
This method returns INDArray for specific entry (i.e. for specific device, if you put entries that way)- Parameters:
entry-- Returns:
-
entry
INDArray entry()
This method returns INDArray for the current device PLEASE NOTE: if you use more than one thread per device you'd better not use this method unless you're 100% sure- Returns:
-
propagate
void propagate(INDArray array)
This method propagates given INDArray to all entries as is- Parameters:
array-
-
numEntries
int numEntries()
This method returns total number of entries within this DistributedINDArray instance- Returns:
-
numActiveEntries
int numActiveEntries()
This method returns number of activated entries- Returns:
-
allocate
void allocate(int entry, LongShapeDescriptor shapeDescriptor)This method allocates INDArray for specified entry- Parameters:
entry-shapeDescriptor-
-
allocate
void allocate(int entry, DataType dataType, long... shape)This method allocates INDArray for specified entry- Parameters:
entry-
-
-