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, wait
purgeCache
protected AtomicLong bytes
public org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> createShapeInformation(int[] shape)
createShapeInformation
in interface ShapeInfoProvider
shape
- public org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> createShapeInformation(int[] shape, char order)
createShapeInformation
in interface ShapeInfoProvider
shape
- order
- public org.nd4j.linalg.primitives.Pair<DataBuffer,int[]> createShapeInformation(int[] shape, int[] stride, long offset, int elementWiseStride, char order)
ShapeInfoProvider
createShapeInformation
in interface ShapeInfoProvider
public long getCachedBytes()
ShapeInfoProvider
getCachedBytes
in interface ShapeInfoProvider
Copyright © 2018. All rights reserved.