Share via


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

モジュールの種類。 2 つの値がサポートされています: "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
必須

モジュールの種類。 2 つの値がサポートされています: "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()

戻り値

16 進数のハッシュ。

の戻り値の型 :

str

属性

allow_reuse

モジュールの再利用を許可するかどうかを指定します。

戻り値

再利用許可プロパティ。

の戻り値の型 :

cloud_settings

cloud_settings を取得します。

:return cloud_settings。 :rtype: str

description

モジュールの説明を取得します。

戻り値

説明文字列。

の戻り値の型 :

str

input_port_defs

モジュールの入力ポート定義を取得します。

戻り値

InputPortDef の一覧。

の戻り値の型 :

module_execution_type

モジュールの実行の種類を取得します。

戻り値

モジュールの実行の種類。

の戻り値の型 :

str

module_type

モジュールの種類を取得します。

2 つの値がサポートされています: "None" と "BatchInferencing"。

戻り値

モジュールの種類。

の戻り値の型 :

str

name

モジュールの名前。

戻り値

名前。

の戻り値の型 :

str

output_port_defs

モジュールの出力ポート定義を取得します。

戻り値

OutputPortDef の一覧。

の戻り値の型 :

param_defs

モジュールのパラメーター定義を取得します。

戻り値

ParamDef の一覧。

の戻り値の型 :

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'