Package org.nd4j.linalg.api.ndarray
Class BaseNDArrayProxy
- java.lang.Object
-
- org.nd4j.linalg.api.ndarray.BaseNDArrayProxy
-
- All Implemented Interfaces:
Serializable
public class BaseNDArrayProxy extends Object implements Serializable
- Author:
- Susan Eraly
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected char
arrayOrdering
protected long[]
arrayShape
This is a proxy class so that ndarrays can be serialized and deserialized independent of the backend Be it cpu or gpuprotected DataBuffer
data
protected long
length
-
Constructor Summary
Constructors Constructor Description BaseNDArrayProxy(INDArray anInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
read(ObjectInputStream s)
protected void
write(ObjectOutputStream out)
-
-
-
Field Detail
-
arrayShape
protected long[] arrayShape
This is a proxy class so that ndarrays can be serialized and deserialized independent of the backend Be it cpu or gpu
-
length
protected long length
-
arrayOrdering
protected char arrayOrdering
-
data
protected transient DataBuffer data
-
-
Constructor Detail
-
BaseNDArrayProxy
public BaseNDArrayProxy(INDArray anInstance)
-
-
Method Detail
-
read
protected void read(ObjectInputStream s) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
write
protected void write(ObjectOutputStream out) throws IOException
- Throws:
IOException
-
-