Skip to content

Commit

Permalink
fix: Important the correct constants and use v1 for tensorboard exper…
Browse files Browse the repository at this point in the history
…iments (#905)

* fix: Important the correct constants and use v1 for tensorboard experiments

* fix: fixing linting errors
  • Loading branch information
mkovalski committed Dec 14, 2021
1 parent 1d81783 commit 48c2bf1
Showing 1 changed file with 4 additions and 6 deletions.
Expand Up @@ -29,11 +29,10 @@
from google.api_core import exceptions
from google.cloud import aiplatform
from google.cloud import storage
from google.cloud.aiplatform.constants import base as constants
from google.cloud.aiplatform.utils import TensorboardClientWithOverride
from google.cloud.aiplatform.tensorboard import uploader_utils
from google.cloud.aiplatform.compat.types import (
tensorboard_experiment_v1beta1 as tensorboard_experiment,
)
from google.cloud.aiplatform.compat.types import tensorboard_experiment
from google.cloud.aiplatform.tensorboard.plugins.tf_profiler import profile_uploader
from google.cloud.aiplatform import training_utils

Expand All @@ -42,9 +41,8 @@

def _get_api_client() -> TensorboardClientWithOverride:
"""Creates an Tensorboard API client."""
aiplatform.constants.API_BASE_PATH = (
training_utils.environment_variables.tensorboard_api_uri
)
constants.API_BASE_PATH = training_utils.environment_variables.tensorboard_api_uri

m = re.match(
"projects/.*/locations/(.*)/tensorboards/.*",
training_utils.environment_variables.tensorboard_resource_name,
Expand Down

0 comments on commit 48c2bf1

Please sign in to comment.