Tensor

A tensor value type.

Fields
dtype enum (DataType)

The data type of tensor.

shape[] string (int64 format)

Shape of the tensor.

boolVal[] boolean

type 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.

[BOOL][google.aiplatform.master.Tensor.DataType.BOOL]

stringVal[] string

[STRING][google.aiplatform.master.Tensor.DataType.STRING]

bytesVal[] string (bytes format)

[STRING][google.aiplatform.master.Tensor.DataType.STRING]

A base64-encoded string.

floatVal[] number

[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]

doubleVal[] number

[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]

intVal[] integer

[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]

int64Val[] string (int64 format)

[INT64][google.aiplatform.master.Tensor.DataType.INT64]

uintVal[] integer (uint32 format)

[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]

uint64Val[] string

[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]

listVal[] object (Tensor)

A list of tensor values.

structVal map (key: string, value: object (Tensor))

A map of string to tensor.

tensorVal string (bytes format)

Serialized raw tensor content.

A base64-encoded string.

JSON representation
{
  "dtype": enum (DataType),
  "shape": [
    string
  ],
  "boolVal": [
    boolean
  ],
  "stringVal": [
    string
  ],
  "bytesVal": [
    string
  ],
  "floatVal": [
    number
  ],
  "doubleVal": [
    number
  ],
  "intVal": [
    integer
  ],
  "int64Val": [
    string
  ],
  "uintVal": [
    integer
  ],
  "uint64Val": [
    string
  ],
  "listVal": [
    {
      object (Tensor)
    }
  ],
  "structVal": {
    string: {
      object (Tensor)
    },
    ...
  },
  "tensorVal": string
}

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