Class: Google::Cloud::AIPlatform::V1::Tensor

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/types.rb

Overview

A tensor value type.

Defined Under Namespace

Modules: DataType Classes: StructValEntry

Instance Attribute Summary collapse

Instance Attribute Details

#bool_val::Array<::Boolean>

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#bytes_val::Array<::String>

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

Returns:

  • (::Array<::String>)

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#double_val::Array<::Float>

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

Returns:

  • (::Array<::Float>)

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#dtype::Google::Cloud::AIPlatform::V1::Tensor::DataType

Returns The data type of tensor.

Returns:



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#float_val::Array<::Float>

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

Returns:

  • (::Array<::Float>)

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#int64_val::Array<::Integer>

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

Returns:

  • (::Array<::Integer>)

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#int_val::Array<::Integer>

Returns [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]



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#list_val::Array<::Google::Cloud::AIPlatform::V1::Tensor>

Returns A list of tensor values.

Returns:



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#shape::Array<::Integer>

Returns Shape of the tensor.

Returns:

  • (::Array<::Integer>)

    Shape of the tensor.



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#string_val::Array<::String>

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

Returns:

  • (::Array<::String>)

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#struct_val::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Tensor}

Returns A map of string to tensor.

Returns:



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#tensor_val::String

Returns Serialized raw tensor content.

Returns:

  • (::String)

    Serialized raw tensor content.



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#uint64_val::Array<::Integer>

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

Returns:

  • (::Array<::Integer>)

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end

#uint_val::Array<::Integer>

Returns [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]



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'proto_docs/google/cloud/aiplatform/v1/types.rb', line 112

class Tensor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AIPlatform::V1::Tensor]
  class StructValEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Data type of the tensor.
  module DataType
    # Not a legal value for DataType. Used to indicate a DataType field has not
    # been set.
    DATA_TYPE_UNSPECIFIED = 0

    # Data types that all computation devices are expected to be
    # capable to support.
    BOOL = 1

    STRING = 2

    FLOAT = 3

    DOUBLE = 4

    INT8 = 5

    INT16 = 6

    INT32 = 7

    INT64 = 8

    UINT8 = 9

    UINT16 = 10

    UINT32 = 11

    UINT64 = 12
  end
end