Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RaySpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Configuration information for the Ray cluster. For experimental launch, Ray cluster creation and Persistent cluster creation are 1:1 mapping: We will provision all the nodes within the Persistent cluster as Ray nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RaySpec

Returns a new instance of GoogleCloudAiplatformV1beta1RaySpec.



14478
14479
14480
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14478

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#head_machine_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec

Specification of a single machine. Corresponds to the JSON property headMachineSpec



14466
14467
14468
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14466

def head_machine_spec
  @head_machine_spec
end

#image_uriString

Optional. Default image for user to choose a preferred ML framework(e.g. tensorflow or Pytorch) by choosing from Vertex prebuild images(https://cloud. google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image, Otherwise, use the @code resource_pool_images field. Corresponds to the JSON property imageUri

Returns:

  • (String)


14476
14477
14478
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14476

def image_uri
  @image_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14483
14484
14485
14486
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14483

def update!(**args)
  @head_machine_spec = args[:head_machine_spec] if args.key?(:head_machine_spec)
  @image_uri = args[:image_uri] if args.key?(:image_uri)
end