Usage 類別
AzureML 資源使用量。
- 繼承
-
azure.ai.ml.entities._mixins.RestTranslatableMixinUsage
建構函式
Usage(id: str | None = None, aml_workspace_location: str | None = None, type: str | None = None, unit: str | UsageUnit | None = None, current_value: int | None = None, limit: int | None = None, name: UsageName | None = None)
參數
方法
dump |
以 YAML 格式將作業內容傾印到檔案中。 |
dump
以 YAML 格式將作業內容傾印到檔案中。
dump(dest: str | PathLike | IO, **kwargs) -> None
參數
必要
要寫入 YAML 內容的本機路徑或檔案資料流程。 如果 dest 是檔案路徑,將會建立新的檔案。 如果 dest 是開啟的檔案,則會直接將檔案寫入。
- kwargs
- dict
要傳遞至 YAML 序列化程式的其他引數。
例外狀況
FileExistsError if dest is a file path and the file already exists.
IOError if dest is an open file and the file is not writable.