Package org.nd4j.linalg.api.ndarray
Interface ShapeInfoProvider
-
- All Known Implementing Classes:
BaseShapeInfoProvider
public interface ShapeInfoProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pair<DataBuffer,long[]>
createShapeInformation(long[] shape, char order, DataType dataType)
This method creates long shapeInformation buffer, based on shape & order being passed inPair<DataBuffer,long[]>
createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, long extras)
Pair<DataBuffer,long[]>
createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, DataType dataType, boolean empty)
This method creates long shapeInformation buffer, based on detailed shape info being passed inPair<DataBuffer,long[]>
createShapeInformation(long[] shape, DataType dataType)
This method creates long shapeInformation buffer, based on shape being passed inlong
getCachedBytes()
This method returns memory used for cache, in bytesvoid
purgeCache()
This method forces cache purge, if cache is available for specific implementation
-
-
-
Method Detail
-
createShapeInformation
Pair<DataBuffer,long[]> createShapeInformation(long[] shape, DataType dataType)
This method creates long shapeInformation buffer, based on shape being passed in- Parameters:
shape
-- Returns:
-
createShapeInformation
Pair<DataBuffer,long[]> createShapeInformation(long[] shape, char order, DataType dataType)
This method creates long shapeInformation buffer, based on shape & order being passed in- Parameters:
shape
-- Returns:
-
createShapeInformation
Pair<DataBuffer,long[]> createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, DataType dataType, boolean empty)
This method creates long shapeInformation buffer, based on detailed shape info being passed in- Parameters:
shape
-- Returns:
-
createShapeInformation
Pair<DataBuffer,long[]> createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, long extras)
-
purgeCache
void purgeCache()
This method forces cache purge, if cache is available for specific implementation
-
getCachedBytes
long getCachedBytes()
This method returns memory used for cache, in bytes- Returns:
-
-