- 1.35.0 (latest)
- 1.34.0
- 1.33.0
- 1.32.1
- 1.31.0
- 1.30.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.1
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.39.0
- 0.38.0
- 0.37.1
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.2
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.13.0
- 0.12.0
- 0.11.1
- 0.10.0
Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Tensor.
A tensor value type.
Generated from protobuf message google.cloud.aiplatform.v1.Tensor
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ dtype
int
The data type of tensor.
↳ shape
array
Shape of the tensor.
↳ bool_val
array
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
↳ string_val
array
STRING
↳ bytes_val
array
STRING
↳ float_val
array
FLOAT
↳ double_val
array
DOUBLE
↳ int_val
array
INT_8 INT_16 INT_32
↳ int64_val
array
INT64
↳ uint_val
array
UINT8 UINT16 UINT32
↳ uint64_val
array
UINT64
↳ list_val
↳ struct_val
↳ tensor_val
string
Serialized raw tensor content.
getDtype
The data type of tensor.
int
setDtype
The data type of tensor.
var
int
$this
getShape
Shape of the tensor.
setShape
Shape of the tensor.
$this
getBoolVal
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.
BOOLsetBoolVal
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.
BOOLvar
bool[]
$this
getStringVal
setStringVal
var
string[]
$this
getBytesVal
setBytesVal
var
string[]
$this
getFloatVal
setFloatVal
var
float[]
$this
getDoubleVal
setDoubleVal
var
float[]
$this
getIntVal
setIntVal
var
int[]
$this
getInt64Val
setInt64Val
$this
getUintVal
setUintVal
var
int[]
$this
getUint64Val
setUint64Val
$this
getListVal
A list of tensor values.
setListVal
A list of tensor values.
$this
getStructVal
A map of string to tensor.
setStructVal
A map of string to tensor.
$this
getTensorVal
Serialized raw tensor content.
string
setTensorVal
Serialized raw tensor content.
var
string
$this