Interface TensorData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TensorData.Builder,,TensorData> SdkBuilder<TensorData.Builder,,TensorData> SdkPojo
- Enclosing class:
TensorData
@Mutable
@NotThreadSafe
public static interface TensorData.Builder
extends SdkPojo, CopyableBuilder<TensorData.Builder,TensorData>
-
Method Summary
Modifier and TypeMethodDescriptionThe raw tensor data as JSON.The data type of the tensor elements, such asint64orfloat32.The dimensions of the tensor, such as [batch_size, seq_length].shape(Collection<Integer> shape) The dimensions of the tensor, such as [batch_size, seq_length].Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
data
The raw tensor data as JSON. The format is determined by the
dtypefield: integer arrays forint64, floating-point arrays forfloat32.- Parameters:
data- The raw tensor data as JSON. The format is determined by thedtypefield: integer arrays forint64, floating-point arrays forfloat32.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dtype
The data type of the tensor elements, such as
int64orfloat32.- Parameters:
dtype- The data type of the tensor elements, such asint64orfloat32.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shape
The dimensions of the tensor, such as [batch_size, seq_length].
- Parameters:
shape- The dimensions of the tensor, such as [batch_size, seq_length].- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shape
The dimensions of the tensor, such as [batch_size, seq_length].
- Parameters:
shape- The dimensions of the tensor, such as [batch_size, seq_length].- Returns:
- Returns a reference to this object so that method calls can be chained together.
-