Skip to content

Commit 7fda11f

Browse files
speedstorm1copybara-github
authored andcommitted
docs: Update SDK Job Submission with Ray v2.33 updated comments
PiperOrigin-RevId: 672234200
1 parent 6d1f7fd commit 7fda11f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

google/cloud/aiplatform/vertex_ray/dashboard_sdk.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2022 Google LLC
3+
# Copyright 2024 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -17,9 +17,10 @@
1717

1818
"""Utility to interact with Ray-on-Vertex dashboard."""
1919

20+
from ray.dashboard.modules import dashboard_sdk as oss_dashboard_sdk
21+
2022
from .util import _gapic_utils
2123
from .util import _validation_utils
22-
from ray.dashboard.modules import dashboard_sdk as oss_dashboard_sdk
2324

2425

2526
def get_job_submission_client_cluster_info(
@@ -28,7 +29,7 @@ def get_job_submission_client_cluster_info(
2829
"""A vertex_ray implementation of get_job_submission_client_cluster_info().
2930
3031
Implements
31-
https://github.com/ray-project/ray/blob/ray-2.3.1/dashboard/modules/dashboard_sdk.py#L82
32+
https://github.com/ray-project/ray/blob/ray-2.33.0/python/ray/dashboard/modules/dashboard_sdk.py#L84
3233
This will be called in from Ray Job API Python client.
3334
3435
Args:

samples/model-builder/upload_model_sample.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START aiplatform_sdk_upload_model_sample]
1615
from typing import Dict, Optional, Sequence
1716

1817
from google.cloud import aiplatform
1918
from google.cloud.aiplatform import explain
2019

2120

21+
# [START aiplatform_sdk_upload_model_sample]
2222
def upload_model_sample(
2323
project: str,
2424
location: str,

0 commit comments

Comments
 (0)