Add pyc files to gitignore, compute_aml runs too now

This commit is contained in:
Lillian Violet 2024-09-04 12:31:15 +02:00
parent 8786f26e1e
commit c6cc9d57a8
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.pyc

View file

@ -29,9 +29,9 @@ def create_or_load_aml(
ml_client = create_or_load_ml_client()
try:
# let's see if the compute target already exists
cpu_cluster = ml_client.compute.get(XXXXX)
cpu_cluster = ml_client.compute.get(cpu_compute_target)
print(
f"You already have a cluster named {XXXXX},",
f"You already have a cluster named {cpu_compute_target},",
"we'll reuse it.",
)
except Exception:
@ -54,7 +54,7 @@ def create_or_load_aml(
)
# Now, we pass the object to MLClient's create_or_update method
cpu_cluster = ml_client.compute.begin_create_or_update(XXXXX)
cpu_cluster = ml_client.compute.begin_create_or_update(cpu_compute_target)
return cpu_cluster