Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update attach_compute.py
  • Loading branch information
Inevitable-Marzipan authored Apr 6, 2021
commit 204f0253d4987a5fcc0add7c24191c8136199f66
3 changes: 2 additions & 1 deletion ml_service/util/attach_compute.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

import traceback
from azureml.core import Workspace
from azureml.core.compute import AmlCompute
from azureml.core.compute import ComputeTarget
Expand Down Expand Up @@ -33,6 +34,6 @@ def get_compute(workspace: Workspace, compute_name: str, vm_size: str, for_batch
)
return compute_target
except ComputeTargetException as ex:
print(ex)
traceback.print_exc()
print("An error occurred trying to provision compute.")
exit(1)