forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support @1-preview & @1-legacy for InternalComponent (Azure#27737)
* feat: support @1-preview & @1-legacy in InternalComponent * refactor: make @ a constant
- Loading branch information
Showing
7 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ml/azure-ai-ml/tests/test_configs/internal/command-mode/legacy_distributed_component.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$schema: https://componentsdk.azureedge.net/jsonschema/DistributedComponent.json | ||
name: microsoft.com.azureml.samples.mpi_example | ||
version: 0.0.1 | ||
display_name: MPI Example | ||
type: DistributedComponent@1-legacy | ||
inputs: | ||
input_path: | ||
type: path | ||
description: The directory contains input data. | ||
optional: false | ||
string_parameter: | ||
type: String | ||
description: A parameter accepts a string value. | ||
optional: true | ||
outputs: | ||
output_path: | ||
type: path | ||
description: The directory contains output data. | ||
launcher: | ||
type: mpi | ||
additional_arguments: >- | ||
python train.py --input-path {inputs.input_path} [--string-parameter {inputs.string_parameter}] | ||
--output-path {outputs.output_path} | ||
environment: | ||
name: AzureML-Minimal | ||
|
10 changes: 10 additions & 0 deletions
10
sdk/ml/azure-ai-ml/tests/test_configs/internal/command-mode/preview_command_component.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$schema: https://componentsdk.azureedge.net/jsonschema/CommandComponent.json | ||
name: ls_command | ||
display_name: Ls Command | ||
version: 0.0.1 | ||
type: CommandComponent@1-preview | ||
is_deterministic: true | ||
command: >- | ||
ls | ||
environment: | ||
name: AzureML-Designer |