Skip to content

Commit

Permalink
Ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Cheung committed Nov 17, 2020
1 parent 86cc720 commit 2802dc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/AutoMLTablesTrainingJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ def _model_upload_fail_string(self) -> str:
return (
f"Training Pipeline {self.resource_name} is not configured to upload a "
"Model."
)
)
4 changes: 2 additions & 2 deletions google/cloud/aiplatform/training_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def run(
NotImplementedError more then one replica.
ValueError if accelerator type is not valid.
"""

if self._has_run:
raise RuntimeError("Custom Training has already run.")

Expand Down Expand Up @@ -907,7 +907,7 @@ def run(
managed_model = gca_model.Model(
display_name=model_display_name, container_spec=container_spec
)

return super()._run_job(
training_task_definition=training_task_definition,
training_task_inputs=training_task_inputs,
Expand Down

0 comments on commit 2802dc8

Please sign in to comment.