Class: Aws::SageMakerTrainingSessionRuntime::Types::TensorData
- Inherits:
-
Struct
- Object
- Struct
- Aws::SageMakerTrainingSessionRuntime::Types::TensorData
- Defined in:
- gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb
Overview
A tensor with data, data type, and shape metadata.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#data ⇒ Hash, ...
The raw tensor data as JSON.
-
#dtype ⇒ String
The data type of the tensor elements, such as
int64orfloat32. -
#shape ⇒ Array<Integer>
The dimensions of the tensor, such as [batch_size, seq_length].
Instance Attribute Details
#data ⇒ Hash, ...
The raw tensor data as JSON. The format is determined by the dtype
field: integer arrays for int64, floating-point arrays for
float32.
1111 1112 1113 1114 1115 1116 1117 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 1111 class TensorData < Struct.new( :data, :dtype, :shape) SENSITIVE = [] include Aws::Structure end |
#dtype ⇒ String
The data type of the tensor elements, such as int64 or float32.
1111 1112 1113 1114 1115 1116 1117 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 1111 class TensorData < Struct.new( :data, :dtype, :shape) SENSITIVE = [] include Aws::Structure end |
#shape ⇒ Array<Integer>
The dimensions of the tensor, such as [batch_size, seq_length].
1111 1112 1113 1114 1115 1116 1117 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 1111 class TensorData < Struct.new( :data, :dtype, :shape) SENSITIVE = [] include Aws::Structure end |