ModuleDef Class

Definition of a module including execution and port definitions.

Inheritance
builtins.object
ModuleDef

Constructor

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)

Parameters

name
str

The name of the module.

description
str

The description of the module.

input_port_defs
list

A list of the module input port definitions.

output_port_defs
list

A list of the module output port definitions.

param_defs
list

A list of parameter definitions.

module_execution_type
str

The module execution type.

create_sequencing_ports
bool

Specifies whether to create sequencing ports or not.

allow_reuse
bool

Specifies whether to allow reuse. The default is True.

version
str

The module version.

module_type
str

The module type. Two values are supported: "None" and "BatchInferencing".

step_type
str

Type of step associated with this module, e.g. "PythonScriptStep", "HyperDriveStep", etc.

arguments
list

Annotated arguments list to use when calling this module

runconfig
str

Runconfig that will be used for python_script_step

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

Settings that will be used for clouds

Methods

add_fake_sequencing_input_port

Add fake input ports for sequencing.

calculate_hash

Calculate the module hash.

add_fake_sequencing_input_port

Add fake input ports for sequencing.

add_fake_sequencing_input_port()

Returns

The fake input port.

Return type

calculate_hash

Calculate the module hash.

calculate_hash()

Returns

The hexdigest hash.

Return type

str

Attributes

allow_reuse

Specify whether to allow module reuse.

Returns

The allow reuse property.

Return type

cloud_settings

Get cloud_settings.

:return The cloud_settings. :rtype: str

description

Get the description of the Module.

Returns

The description string.

Return type

str

input_port_defs

Get the input port definitions of the Module.

Returns

The list of InputPortDefs.

Return type

module_execution_type

Get the module execution type.

Returns

The module execution type.

Return type

str

module_type

Get module type.

Two values are supported: "None" and "BatchInferencing".

Returns

The module type.

Return type

str

name

Name of the Module.

Returns

The name.

Return type

str

output_port_defs

Get the output port definitions of the Module.

Returns

The list of OutputPortDefs.

Return type

param_defs

Get the parameter definitions of the Module.

Returns

The list of ParamDefs.

Return type

runconfig

Get runconfig.

:return The runconfig. :rtype: str

step_type

Get step type.

Example values are "PythonScriptStep", "HyperDriveStep", "ModuleStep".

Returns

The step type.

Return type

str

fake_input_prefix

fake_input_prefix = '_run_after_input_'

fake_output_name

fake_output_name = '_run_after_output'