Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
DataType
Stay organized with collections
Save and categorize content based on your preferences.
Represents the type of elements in a Tensor
as an enum.
Inherited Methods
From class
java.lang.Enum
final
int
|
|
int
|
compareTo(Object arg0)
|
final
boolean
|
equals(Object arg0)
|
final
Class<E>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
valueOf(Class<T> arg0, String arg1)
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
From interface
java.lang.Comparable
abstract
int
|
compareTo(E extends Enum<E> arg0)
|
Enum Values
public
static
final
DataType
BOOL
public
static
final
DataType
DOUBLE
64-bit double precision floating point.
public
static
final
DataType
FLOAT
32-bit single precision floating point.
public
static
final
DataType
INT32
public
static
final
DataType
INT64
public
static
final
DataType
STRING
A sequence of bytes.
TensorFlow uses the STRING type for an arbitrary sequence of bytes.
public
static
final
DataType
UINT8
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-22 UTC."],[],[],null,["# DataType\n\npublic final enum **DataType** \nRepresents the type of elements in a [Tensor](/api_docs/java/org/tensorflow/Tensor) as an enum. \n\n### Inherited Methods\n\nFrom class java.lang.Enum \n\n|----------------------------------|--------------------------------------------------------------------|\n| final int | compareTo([DataType](/api_docs/java/org/tensorflow/DataType) arg0) |\n| int | compareTo(Object arg0) |\n| final boolean | equals(Object arg0) |\n| final Class\\\u003cE\\\u003e | getDeclaringClass() |\n| final int | hashCode() |\n| final String | name() |\n| final int | ordinal() |\n| String | toString() |\n| static \\\u003cT extends Enum\\\u003cT\\\u003e\\\u003e T | valueOf(Class\\\u003cT\\\u003e arg0, String arg1) |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface java.lang.Comparable \n\n|--------------|-------------------------------------|\n| abstract int | compareTo(E extends Enum\\\u003cE\\\u003e arg0) |\n\nEnum Values\n-----------\n\n#### public static final DataType\n**BOOL**\n\nBoolean. \n\n#### public static final DataType\n**DOUBLE**\n\n64-bit double precision floating point. \n\n#### public static final DataType\n**FLOAT**\n\n32-bit single precision floating point. \n\n#### public static final DataType\n**INT32**\n\n32-bit signed integer. \n\n#### public static final DataType\n**INT64**\n\n64-bit signed integer. \n\n#### public static final DataType\n**STRING**\n\nA sequence of bytes.\n\nTensorFlow uses the STRING type for an arbitrary sequence of bytes.\n\n\u003cbr /\u003e\n\n#### public static final DataType\n**UINT8**\n\n8-bit unsigned integer."]]