Tensor Stay organized with collections Save and categorize content based on your preferences.
A tensor value type.
dtypeenum (DataType)The data type of tensor.
shape[]string (int64 format)Shape of the tensor.
boolVal[]booleantype specific representations that make it easy to create tensor protos in all languages. Only the representation corresponding to "dtype" can be set. The values hold the flattened representation of the tensor in row major order.
stringVal[]stringfloatVal[]numberdoubleVal[]numberuint64Val[]stringlistVal[]object (Tensor)A list of tensor values.
structValmap (key: string, value: object (Tensor))A map of string to tensor.
tensorValstring (bytes format)Serialized raw tensor content.
A base64-encoded string.
| JSON representation |
|---|
{"dtype":enum ( |
DataType
data type of the tensor.
| Enums | |
|---|---|
DATA_TYPE_UNSPECIFIED | Not a legal value for datatype. Used to indicate a datatype field has not been set. |
BOOL | data types that all computation devices are expected to be capable to support. |
STRING | |
FLOAT | |
DOUBLE | |
INT8 | |
INT16 | |
INT32 | |
INT64 | |
UINT8 | |
UINT16 | |
UINT32 | |
UINT64 | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-27 UTC.