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 void
allocate(int entry, DataType dataType, long... shape)
This method allocates INDArray for specified entryvoid
allocate(int entry, LongShapeDescriptor shapeDescriptor)
This method allocates INDArray for specified entryINDArray
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% sureINDArray
entry(int entry)
This method returns INDArray for specific entry (i.e.ArrayType
getINDArrayType()
This method returns ArrayType for this instanceint
numActiveEntries()
This method returns number of activated entriesint
numEntries()
This method returns total number of entries within this DistributedINDArray instancevoid
propagate(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
-
-
-