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()

返回

Hexdigest 哈希。

返回类型

str

属性

allow_reuse

指定是否允许模块重用。

返回

允许重用属性。

返回类型

cloud_settings

获取 cloud_settings。

:返回 cloud_settings。 :rtype:str

description

获取模块的说明。

返回

说明字符串。

返回类型

str

input_port_defs

获取模块的输入端口定义。

返回

InputPortDef 的列表。

返回类型

module_execution_type

获取模块的执行类型。

返回

模块执行类型。

返回类型

str

module_type

获取模块类型。

支持两个值:“None”和“BatchInferencing”。

返回

模块类型。

返回类型

str

name

模块的名称。

返回

名称。

返回类型

str

output_port_defs

获取模块的输出端口定义。

返回

OutputPortDef 的列表。

返回类型

param_defs

获取模块的参数定义。

返回

ParamDef 的列表。

返回类型

runconfig

获取 runconfig。

:返回 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'