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

#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

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

#bytes_val

def bytes_val() -> ::Array<::String>
Returns
  • (::Array<::String>) — STRING

#bytes_val=

def bytes_val=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — STRING
Returns
  • (::Array<::String>) — STRING

#double_val

def double_val() -> ::Array<::Float>
Returns
  • (::Array<::Float>) — DOUBLE

#double_val=

def double_val=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — DOUBLE
Returns
  • (::Array<::Float>) — 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

#float_val=

def float_val=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — FLOAT
Returns
  • (::Array<::Float>) — FLOAT

#int64_val

def int64_val() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — INT64

#int64_val=

def int64_val=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — INT64
Returns
  • (::Array<::Integer>) — INT64

#int_val

def int_val() -> ::Array<::Integer>
Returns

#int_val=

def int_val=(value) -> ::Array<::Integer>
Parameter
Returns

#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

#string_val=

def string_val=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — STRING
Returns
  • (::Array<::String>) — 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

#uint64_val=

def uint64_val=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — UINT64
Returns
  • (::Array<::Integer>) — UINT64

#uint_val

def uint_val() -> ::Array<::Integer>
Returns

#uint_val=

def uint_val=(value) -> ::Array<::Integer>
Parameter
Returns