public abstract class BaseShapeInfoProvider extends Object implements ShapeInfoProvider
| Modifier and Type | Field and Description |
|---|---|
protected AtomicLong |
bytes |
| Constructor and Description |
|---|
BaseShapeInfoProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> |
createShapeInformation(int[] shape)
This method creates shapeInformation buffer, based on shape being passed in
|
org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> |
createShapeInformation(int[] shape,
char order)
This method creates shapeInformation buffer, based on shape & order being passed in
|
org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> |
createShapeInformation(int[] shape,
int[] stride,
long offset,
int elementWiseStride,
char order)
This method creates shapeInformation buffer, based on detailed shape information being passed in
|
long |
getCachedBytes()
This method returns memory used for cache, in bytes
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpurgeCacheprotected AtomicLong bytes
public org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> createShapeInformation(int[] shape)
createShapeInformation in interface ShapeInfoProvidershape - public org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> createShapeInformation(int[] shape, char order)
createShapeInformation in interface ShapeInfoProvidershape - order - public org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> createShapeInformation(int[] shape, int[] stride, long offset, int elementWiseStride, char order)
ShapeInfoProvidercreateShapeInformation in interface ShapeInfoProviderpublic long getCachedBytes()
ShapeInfoProvidergetCachedBytes in interface ShapeInfoProviderCopyright © 2018. All rights reserved.