问题描述
我需要为 docker start --ipc=host 使用参数 并在 vs 代码 IDE 中创建作业
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
code:
local_path: c:\Users\Stanislav_Sorokin1\Documents\Projects\Estee Lauder\face-segmentation-
experiments-VK_initial_experiment\face-segmentation-experiments-VK_initial_experiment
command: python trainAzure.py --data {inputs.trainingData1}
# invoke completions (Ctrl+Space,Cmd+Space) to see the list of environments available
environment:
docker:
image: mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.2-cudnn8-ubuntu18.04:20210507.v1
arguments: ['--ipc=host']
conda_file: file:environment.yml
compute:
# invoke completions (Ctrl+Space,Cmd+Space) to see the list of computes available
target: azureml:V100Single
# This defines the input datasets to mount. The names of the items in
inputs can be referenced
in the command
inputs:
trainingData1:
mode: mount
data: azureml:Sample:2
但它运行时出错:
Validation for CommandJobSchema Failed:
{
"environment": [
{
"docker": {
"arguments": [
"UnkNown field."
]
}
},{
"_schema": [
"In order to specify an existing environments,please provide either of the following
prefixed with 'azureml:':\n1. The full ARM ID for the resource,e.g.azureml:/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.MachineLearningServices/workspaces/<workspace_name>/environments/<resource_name>/<version-if applicable>)\n2. The short-hand name of the resource registered in the workspace,eg: azureml:<short-hand-name>:<version-if applicable>. For example,version 1 of the environment registered as 'my-env' in the workspace can be referenced as 'azureml:my-env:1'"
]
},please provide either of the following prefixed with 'azureml:':\n1. The full ARM ID for the resource,version 1 of the environment registered as 'my-env' in the workspace can be referenced as 'azureml:my-env:1'"
]
}
]
}
我做错了什么?
附言是的,我可以在笔记本中使用这个参数,它的工作env.docker.arguments = ['--ipc=host']
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)