public class DataDesc
extends java.lang.Object
NDArray.
The information includes:
Device
Shape
DataType
SparseFormat
| Constructor and Description |
|---|
DataDesc(Shape shape)
Constructs and initializes a
DataDesc with specified Shape. |
DataDesc(Shape shape,
DataType dataType)
|
DataDesc(Shape shape,
DataType dataType,
java.lang.String name)
Constructs and initializes a
DataDesc with specified Shape, DataType,
name, Device and SparseFormat. |
DataDesc(Shape shape,
java.lang.String name)
Constructs and initializes a
DataDesc with specified Shape and name. |
| Modifier and Type | Method and Description |
|---|---|
DataType |
getDataType()
|
java.lang.String |
getName()
Returns the name of the
NDArray. |
Shape |
getShape()
|
void |
setDataType(DataType dataType)
|
void |
setName(java.lang.String name)
Sets the name of the
NDArray. |
void |
setShape(Shape shape)
|
java.lang.String |
toString() |
public DataDesc(Shape shape, java.lang.String name)
DataDesc with specified Shape and name.public java.lang.String getName()
NDArray.NDArraypublic void setName(java.lang.String name)
NDArray.name - the name of the NDArraypublic void setDataType(DataType dataType)
public java.lang.String toString()
toString in class java.lang.Object