ModuleDef 類別

模組的定義,包括執行和埠定義。

初始化 ModuleDef。

繼承
builtins.object
ModuleDef

建構函式

ModuleDef(name, description=None, input_port_defs=None, output_port_defs=None, param_defs=None, module_execution_type=None, create_sequencing_ports=True, allow_reuse=True, version=None, module_type=None, step_type=None, arguments=None, runconfig=None, cloud_settings=None)

參數

name
str
必要

模組的名稱。

description
str
預設值: None

模組的描述。

input_port_defs
list
預設值: None

模組輸入埠定義的清單。

output_port_defs
list
預設值: None

模組輸出埠定義的清單。

param_defs
list
預設值: None

參數定義的清單。

module_execution_type
str
預設值: None

模組執行類型。

create_sequencing_ports
bool
預設值: True

指定是否要建立排序埠。

allow_reuse
bool
預設值: True

指定是否允許重複使用。 預設值為 True。

version
str
預設值: None

模組版本。

module_type
str
預設值: None

模組類型。 支援兩個值:「None」 和 「BatchInferencing」。

step_type
str
預設值: None

與此課程模組相關聯的步驟類型,例如 「PythonScriptStep」、「HyperDriveStep」 等。

arguments
list
預設值: None

呼叫此模組時要使用的批註引數清單

runconfig
str
預設值: None

將用於python_script_step的 Runconfig

cloud_settings
<xref:azureml.pipeline.core._restclients.aeva.models.CloudSettings>
預設值: None

將用於雲端的設定

name
str
必要

模組的名稱。

description
str
必要

模組的描述。

input_port_defs
list
必要

模組輸入埠定義的清單。

output_port_defs
list
必要

模組輸出埠定義的清單。

param_defs
list
必要

參數定義的清單。

module_execution_type
str
必要

模組執行類型。

create_sequencing_ports
bool
必要

指定是否要建立排序埠。

allow_reuse
bool
必要

指定是否允許重複使用。

version
str
必要

模組版本。

module_type
str
必要

模組類型。 支援兩個值:「None」 和 「BatchInferencing」。

step_type
str
必要

與此課程模組相關聯的步驟類型,例如 「PythonScriptStep」、「HyperDriveStep」 等。

arguments
list
必要

呼叫此模組時要使用的批註引數清單

runconfig
str
必要

將用於python_script_step的 Runconfig

cloud_settings
<xref:azureml.pipeline.core._restclients.aeva.models.CloudSettings>
必要

將用於雲端的設定

方法

add_fake_sequencing_input_port

新增用於排序的假輸入埠。

calculate_hash

計算模組雜湊。

add_fake_sequencing_input_port

新增用於排序的假輸入埠。

add_fake_sequencing_input_port()

傳回

假輸入埠。

傳回類型

calculate_hash

計算模組雜湊。

calculate_hash()

傳回

十六進位雜湊。

傳回類型

str

屬性

allow_reuse

指定是否允許模組重複使用。

傳回

允許重複使用屬性。

傳回類型

cloud_settings

取得cloud_settings。

:return cloud_settings。 :rtype: str

description

取得模組的描述。

傳回

描述字串。

傳回類型

str

input_port_defs

取得模組的輸入埠定義。

傳回

InputPortDefs 的清單。

傳回類型

module_execution_type

取得模組執行類型。

傳回

模組執行類型。

傳回類型

str

module_type

取得模組類型。

支援兩個值:「None」 和 「BatchInferencing」。

傳回

模組類型。

傳回類型

str

name

模組的名稱。

傳回

名稱。

傳回類型

str

output_port_defs

取得模組的輸出埠定義。

傳回

OutputPortDefs 的清單。

傳回類型

param_defs

取得模組的參數定義。

傳回

ParamDefs 的清單。

傳回類型

runconfig

取得 runconfig。

:return Runconfig。 :rtype: str

step_type

取得步驟類型。

範例值為 「PythonScriptStep」、「HyperDriveStep」、「ModuleStep」。

傳回

步驟類型。

傳回類型

str

fake_input_prefix

fake_input_prefix = '_run_after_input_'

fake_output_name

fake_output_name = '_run_after_output'