from azure.ai.ml import Input, command
from azure.ai.ml.entities import Data, CommandJob
from azure.ai.ml.constants import AssetTypes
# in this example we
my_job_inputs = {
"input_data": Input(
path='***',
type=AssetTypes.URI_FOLDER
)
}
job = command(
code="****", # local path where the code is stored
command='python main.py --input_folder ${{inputs.input_data}}',
inputs=my_job_inputs,
environment="test-env2",
compute="compute-instance"
)
#submit the command job
returned_job = ml_client.create_or_update(job)
#get a URL for the status of the job
returned_job.services["Studio"].endpoint对于代码路径,我希望将其指向Azure blob存储区,因为我的代码被上传到那里,但是如果我使用blob存储的位置,则会得到:
ValidationException: /home/xmask/azure/azureml-blobstore-88acaeac-5f0c-40d5-852a-b152622f94b6/UI/wITP/05-26-2022_34567_UTC not found, local path must point to a file or directory. Path must follow proper formatting for datastore, job or run uri's.有什么想法可以指出代码路径到Azure blob存储吗?
发布于 2022-06-03 07:56:56
做这件事有几种方法。

然后点击blob,就会有一个URL。使用它访问图像/文件。
如果您想采用安全的方式,则使用


https://stackoverflow.com/questions/72485118
复制相似问题