共用方式為


ComputeConfiguration 類別

計算資源組態

繼承
azure.ai.ml.entities._mixins.RestTranslatableMixin
ComputeConfiguration
azure.ai.ml.entities._mixins.DictMixin
ComputeConfiguration

建構函式

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