ComputeConfiguration 類別
計算資源組態
- 繼承
-
azure.ai.ml.entities._mixins.RestTranslatableMixinComputeConfigurationazure.ai.ml.entities._mixins.DictMixinComputeConfiguration
建構函式
ComputeConfiguration(*, target: str | None = None, instance_count: int | None = None, is_local: bool | None = None, instance_type: str | None = None, location: str | None = None, properties: Dict[str, Any] | None = None, deserialize_properties: bool = False)
參數
名稱 | Description |
---|---|
target
必要
|
計算目標。 |
instance_count
必要
|
實例數目。 |
is_local
必要
|
指定計算是否位於本機電腦上。 |
location
必要
|
計算資源的位置。 |
properties
必要
|
資源屬性 |
deserialize_properties
必要
|
指定屬性包是否應該還原序列化。 預設為 False。 |
僅限關鍵字參數
名稱 | Description |
---|---|
target
必要
|
|
instance_count
必要
|
|
is_local
必要
|
|
instance_type
必要
|
|
location
必要
|
|
properties
必要
|
|
deserialize_properties
必要
|
|
方法
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key: Any, default: Any | None = None) -> Any
參數
名稱 | Description |
---|---|
key
必要
|
|
default
|
預設值: None
|
has_key
has_key(k: Any) -> bool
參數
名稱 | Description |
---|---|
k
必要
|
|
items
items() -> list
keys
keys() -> list
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> list
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應