Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::Tensor (v0.57.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

#dtype=

def dtype=(value) -> ::Google::Cloud::AIPlatform::V1::Tensor::DataType
Parameter
Returns

#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

#list_val=

def list_val=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Tensor>
Parameter
Returns

#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]