共用方式為


ComputeRuntime 類別

注意

這是實驗性類別,可以隨時變更。 請參閱 https://aka.ms/azuremlexperimental 以取得詳細資訊。

Spark 計算執行時間組態。

繼承
azure.ai.ml.entities._mixins.RestTranslatableMixin
ComputeRuntime

建構函式

ComputeRuntime(*, spark_runtime_version: str | None = None)

僅限關鍵字的參數

名稱 Description
spark_runtime_version

Spark 執行時間版本。

範例

建立 ComputeRuntime 物件。


   from azure.ai.ml.entities import ComputeRuntime

   compute_runtime = ComputeRuntime(spark_runtime_version="3.2.0")