- 0.58.0 (latest)
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 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.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::Tensor.
A tensor value type.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bool_val
def bool_val() -> ::Array<::Boolean>
Returns
-
(::Array<::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]
#bool_val=
def bool_val=(value) -> ::Array<::Boolean>
Parameter
-
value (::Array<::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]
Returns
-
(::Array<::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]
#bytes_val
def bytes_val() -> ::Array<::String>
Returns
- (::Array<::String>) — [STRING][google.aiplatform.master.Tensor.DataType.STRING]
#bytes_val=
def bytes_val=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — [STRING][google.aiplatform.master.Tensor.DataType.STRING]
Returns
- (::Array<::String>) — [STRING][google.aiplatform.master.Tensor.DataType.STRING]
#double_val
def double_val() -> ::Array<::Float>
Returns
- (::Array<::Float>) — [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
#double_val=
def double_val=(value) -> ::Array<::Float>
Parameter
- value (::Array<::Float>) — [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
Returns
- (::Array<::Float>) — [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
#dtype
def dtype() -> ::Google::Cloud::AIPlatform::V1::Tensor::DataType
Returns
- (::Google::Cloud::AIPlatform::V1::Tensor::DataType) — The data type of tensor.
#dtype=
def dtype=(value) -> ::Google::Cloud::AIPlatform::V1::Tensor::DataType
Parameter
- value (::Google::Cloud::AIPlatform::V1::Tensor::DataType) — The data type of tensor.
Returns
- (::Google::Cloud::AIPlatform::V1::Tensor::DataType) — The data type of tensor.
#float_val
def float_val() -> ::Array<::Float>
Returns
- (::Array<::Float>) — [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
#float_val=
def float_val=(value) -> ::Array<::Float>
Parameter
- value (::Array<::Float>) — [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
Returns
- (::Array<::Float>) — [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
#int64_val
def int64_val() -> ::Array<::Integer>
Returns
- (::Array<::Integer>) — [INT64][google.aiplatform.master.Tensor.DataType.INT64]
#int64_val=
def int64_val=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::Integer>) — [INT64][google.aiplatform.master.Tensor.DataType.INT64]
Returns
- (::Array<::Integer>) — [INT64][google.aiplatform.master.Tensor.DataType.INT64]
#int_val
def int_val() -> ::Array<::Integer>
Returns
- (::Array<::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]
#int_val=
def int_val=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::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]
Returns
- (::Array<::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]
#list_val
def list_val() -> ::Array<::Google::Cloud::AIPlatform::V1::Tensor>
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::Tensor>) — A list of tensor values.
#list_val=
def list_val=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Tensor>
Parameter
- value (::Array<::Google::Cloud::AIPlatform::V1::Tensor>) — A list of tensor values.
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::Tensor>) — A list of tensor values.
#shape
def shape() -> ::Array<::Integer>
Returns
- (::Array<::Integer>) — Shape of the tensor.
#shape=
def shape=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::Integer>) — Shape of the tensor.
Returns
- (::Array<::Integer>) — Shape of the tensor.
#string_val
def string_val() -> ::Array<::String>
Returns
- (::Array<::String>) — [STRING][google.aiplatform.master.Tensor.DataType.STRING]
#string_val=
def string_val=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — [STRING][google.aiplatform.master.Tensor.DataType.STRING]
Returns
- (::Array<::String>) — [STRING][google.aiplatform.master.Tensor.DataType.STRING]
#struct_val
def struct_val() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Tensor}
Returns
- (::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Tensor}) — A map of string to tensor.
#struct_val=
def struct_val=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Tensor}
Parameter
- value (::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Tensor}) — A map of string to tensor.
Returns
- (::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Tensor}) — A map of string to tensor.
#tensor_val
def tensor_val() -> ::String
Returns
- (::String) — Serialized raw tensor content.
#tensor_val=
def tensor_val=(value) -> ::String
Parameter
- value (::String) — Serialized raw tensor content.
Returns
- (::String) — Serialized raw tensor content.
#uint64_val
def uint64_val() -> ::Array<::Integer>
Returns
- (::Array<::Integer>) — [UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
#uint64_val=
def uint64_val=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::Integer>) — [UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
Returns
- (::Array<::Integer>) — [UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
#uint_val
def uint_val() -> ::Array<::Integer>
Returns
- (::Array<::Integer>) — [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
#uint_val=
def uint_val=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::Integer>) — [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
Returns
- (::Array<::Integer>) — [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]