AML run.log() 和 run.log_list() 失败且没有错误

AML run.log() and run.log_list() fail without error

我有一个带有 DatabricksSteps 的管道,每个包含:

from azureml.core.run import Run
run = Run.get_context()
#do stuff
run.log(name, val, desc)
run.log_list(name, vals, desc)
run.log_image(title, fig, desc)

只有 log_image() 似乎有效。该图像按预期出现在 AML 实验工作区的 "images" 部分,但 "tracked metrics" 和 "charts" 区域为空白。在交互式作业中,run.log()run.log_list() 按预期工作。我通过使用 print() 而不是 run.log().

测试了参数没有问题

在脚本末尾添加 run.flush()。