Add pyc files to gitignore, compute_aml runs too now
This commit is contained in:
parent
8786f26e1e
commit
c6cc9d57a8
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.pyc
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue