Class: Google::Apis::TpuV2::MultisliceParams
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2::MultisliceParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2/classes.rb,
lib/google/apis/tpu_v2/representations.rb,
lib/google/apis/tpu_v2/representations.rb
Overview
Parameters to specify for multislice QueuedResource requests. This message must be populated in case of multislice requests instead of node_id.
Instance Attribute Summary collapse
-
#node_count ⇒ Fixnum
Required.
-
#node_id_prefix ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MultisliceParams
constructor
A new instance of MultisliceParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MultisliceParams
Returns a new instance of MultisliceParams.
663 664 665 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 663 def initialize(**args) update!(**args) end |
Instance Attribute Details
#node_count ⇒ Fixnum
Required. Number of nodes with this spec. The system will attempt to provison "
node_count" nodes as part of the request. This needs to be > 1.
Corresponds to the JSON property nodeCount
653 654 655 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 653 def node_count @node_count end |
#node_id_prefix ⇒ String
Optional. Prefix of node_ids in case of multislice request. Should follow the
^[A-Za-z0-9_.~+%-]+$
regex format. If node_count = 3 and node_id_prefix = "np"
, node ids of nodes created will be "np-0", "np-1", "np-2". If this field is
not provided we use queued_resource_id as the node_id_prefix.
Corresponds to the JSON property nodeIdPrefix
661 662 663 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 661 def node_id_prefix @node_id_prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
668 669 670 671 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 668 def update!(**args) @node_count = args[:node_count] if args.key?(:node_count) @node_id_prefix = args[:node_id_prefix] if args.key?(:node_id_prefix) end |