Enum Class Tensor.ElementType
- All Implemented Interfaces:
Serializable, Comparable<Tensor.ElementType>, Constable
- Enclosing class:
Tensor
Element types matching
OgaElementType.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Tensor.ElementTypeReturns the enum constant of this class with the specified name.static Tensor.ElementType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Undefined. -
FLOAT32
float32. -
UINT8
uint8. -
INT8
int8. -
UINT16
uint16. -
INT16
int16. -
INT32
int32. -
INT64
int64. -
STRING
string. -
BOOL
bool. -
FLOAT16
float16. -
FLOAT64
float64. -
UINT32
uint32. -
UINT64
uint64. -
COMPLEX64
complex64. -
COMPLEX128
complex128. -
BFLOAT16
bfloat16.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-