ModuleDef Class
Definition of a module including execution and port definitions.
Initialize ModuleDef.
- Inheritance
-
builtins.objectModuleDef
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
- create_sequencing_ports
- bool
Specifies whether to create sequencing ports or not.
- 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.
- cloud_settings
- <xref:azureml.pipeline.core._restclients.aeva.models.CloudSettings>
Settings that will be used for clouds
- step_type
- str
Type of step associated with this module, e.g. "PythonScriptStep", "HyperDriveStep", etc.
- 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
Attributes
allow_reuse
cloud_settings
Get cloud_settings.
:return The cloud_settings. :rtype: str
description
input_port_defs
module_execution_type
module_type
Get module type.
Two values are supported: "None" and "BatchInferencing".
Returns
The module type.
Return type
name
output_port_defs
param_defs
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
fake_input_prefix
fake_input_prefix = '_run_after_input_'
fake_output_name
fake_output_name = '_run_after_output'
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for