ComputeOperations 類別
ComputeOperations。
您不應該直接具現化此類別。 相反地,您應該建立 MLClient 實例,為您具現化它,並將其附加為屬性。
- 繼承
-
azure.ai.ml._scope_dependent_operations._ScopeDependentOperationsComputeOperations
建構函式
ComputeOperations(operation_scope: azure.ai.ml._scope_dependent_operations.OperationScope, operation_config: azure.ai.ml._scope_dependent_operations.OperationConfig, service_client: azure.ai.ml._restclient.v2022_10_01_preview._azure_machine_learning_workspaces.AzureMachineLearningWorkspaces, **kwargs: Dict)
參數
- operation_scope
- operation_config
- service_client
方法
begin_attach |
將計算附加至工作區。 |
begin_create_or_update |
建立計算。 |
begin_delete |
刪除計算。 |
begin_restart |
重新開機計算。 |
begin_start |
啟動計算。 |
begin_stop |
停止計算。 |
begin_update |
更新計算。 目前僅適用于 AmlCompute。 |
get |
取得計算資源。 |
list |
列出工作區的計算。 |
list_nodes |
取得計算資源節點。 |
list_sizes |
傳回位置中支援的 VM 大小。 |
list_usage |
取得目前使用量資訊,以及指定訂用帳戶和位置的 AML 資源限制。 |
begin_attach
將計算附加至工作區。
begin_attach(compute: azure.ai.ml.entities._compute.compute.Compute, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.ai.ml.entities._compute.compute.Compute]
參數
傳回
會傳回 Compute 的 LROPoller 實例。
傳回類型
begin_create_or_update
建立計算。
begin_create_or_update(compute: azure.ai.ml.entities._compute.compute.Compute) -> azure.core.polling._poller.LROPoller[azure.ai.ml.entities._compute.compute.Compute]
參數
傳回
會傳回 Compute 的 LROPoller 實例。
傳回類型
begin_delete
刪除計算。
begin_delete(name: str, *, action: str = 'Delete') -> azure.core.polling._poller.LROPoller[None]
參數
傳回
用來追蹤作業狀態的輪詢器。
傳回類型
begin_restart
重新開機計算。
begin_restart(name: str) -> azure.core.polling._poller.LROPoller[None]
參數
傳回
用來追蹤作業狀態的輪詢器。
傳回類型
begin_start
啟動計算。
begin_start(name: str) -> azure.core.polling._poller.LROPoller[None]
參數
傳回
用來追蹤作業狀態的輪詢器。
傳回類型
begin_stop
停止計算。
begin_stop(name: str) -> azure.core.polling._poller.LROPoller[None]
參數
傳回
用來追蹤作業狀態的輪詢器。
傳回類型
begin_update
更新計算。 目前僅適用于 AmlCompute。
begin_update(compute: azure.ai.ml.entities._compute.compute.Compute) -> azure.core.polling._poller.LROPoller[azure.ai.ml.entities._compute.compute.Compute]
參數
傳回
會傳回 Compute 的 LROPoller 實例。
傳回類型
get
取得計算資源。
get(name: str) -> azure.ai.ml.entities._compute.compute.Compute
參數
傳回
計算物件
傳回類型
list
列出工作區的計算。
list(*, compute_type: Optional[str] = None) -> Iterable[azure.ai.ml.entities._compute.compute.Compute]
參數
傳回
反覆運算器,例如 Compute 物件的實例
傳回類型
list_nodes
取得計算資源節點。
list_nodes(name: str) -> Iterable[azure.ai.ml.entities._compute._aml_compute_node_info.AmlComputeNodeInfo]
參數
傳回
aml 計算節點資訊物件的反覆運算器
傳回類型
list_sizes
傳回位置中支援的 VM 大小。
list_sizes(*, location: Optional[str] = None, compute_type: Optional[str] = None) -> Iterable[azure.ai.ml.entities._compute._vm_size.VmSize]
參數
傳回
虛擬機器大小的反覆運算器。
傳回類型
<xref:Iterable>[VmSize]
list_usage
意見反應
提交並檢視相關的意見反應