@Deprecated public enum TensorDataType extends Enum<TensorDataType>
| Enum Constant and Description |
|---|
BFLOAT16
Deprecated.
|
BOOL
Deprecated.
|
COMPLEX128
Deprecated.
|
COMPLEX64
Deprecated.
|
DOUBLE
Deprecated.
|
FLOAT
Deprecated.
|
HALF
Deprecated.
|
INT16
Deprecated.
|
INT32
Deprecated.
|
INT64
Deprecated.
|
INT8
Deprecated.
|
INVALID
Deprecated.
|
QINT16
Deprecated.
|
QINT32
Deprecated.
|
QINT8
Deprecated.
|
QUINT16
Deprecated.
|
QUINT8
Deprecated.
|
RESOURCE
Deprecated.
|
STRING
Deprecated.
|
UINT16
Deprecated.
|
UINT32
Deprecated.
|
UINT64
Deprecated.
|
UINT8
Deprecated.
|
VARIANT
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static TensorDataType |
fromNd4jType(org.nd4j.linalg.api.buffer.DataType dataType)
Deprecated.
|
static TensorDataType |
fromNd4jType(org.nd4j.linalg.api.ndarray.INDArray array)
Deprecated.
|
static TensorDataType |
fromProtoValue(String value)
Deprecated.
Map a tensor data type to a proto value found in tensorflow.
|
static org.nd4j.linalg.api.buffer.DataType |
toNd4jType(TensorDataType tensorDataType)
Deprecated.
|
static String |
toPythonName(TensorDataType tensorDataType)
Deprecated.
Get the python name for the given data type
|
org.nd4j.tensorflow.conversion.TensorDataType |
toTFType()
Deprecated.
|
static TensorDataType |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static TensorDataType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TensorDataType INVALID
public static final TensorDataType FLOAT
public static final TensorDataType DOUBLE
public static final TensorDataType INT32
public static final TensorDataType UINT8
public static final TensorDataType INT16
public static final TensorDataType INT8
public static final TensorDataType STRING
public static final TensorDataType COMPLEX64
public static final TensorDataType INT64
public static final TensorDataType BOOL
public static final TensorDataType QINT8
public static final TensorDataType QUINT8
public static final TensorDataType QINT32
public static final TensorDataType BFLOAT16
public static final TensorDataType QINT16
public static final TensorDataType QUINT16
public static final TensorDataType UINT16
public static final TensorDataType COMPLEX128
public static final TensorDataType HALF
public static final TensorDataType RESOURCE
public static final TensorDataType VARIANT
public static final TensorDataType UINT32
public static final TensorDataType UINT64
public static TensorDataType[] values()
for (TensorDataType c : TensorDataType.values()) System.out.println(c);
public static TensorDataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TensorDataType fromProtoValue(String value)
value - the input stringTensorDataTypepublic static String toPythonName(TensorDataType tensorDataType)
tensorDataType - the python name for the given data typepublic static org.nd4j.linalg.api.buffer.DataType toNd4jType(TensorDataType tensorDataType)
public static TensorDataType fromNd4jType(org.nd4j.linalg.api.buffer.DataType dataType)
public static TensorDataType fromNd4jType(org.nd4j.linalg.api.ndarray.INDArray array)
public org.nd4j.tensorflow.conversion.TensorDataType toTFType()
Copyright © 2022. All rights reserved.