ModelProfile 类
- 继承
-
azureml.core.profile._ModelEvaluationResultBaseModelProfile
构造函数
ModelProfile(workspace, name)
参数
注解
以下示例介绍如何返回 ModelProfile 对象。
profile = Model.profile(ws, "profilename", [model], inference_config, input_dataset=dataset)
profile.wait_for_profiling(True)
profiling_details = profile.get_details()
print(profiling_details)
方法
| get_details |
获取分析结果的详细信息。 如果成功,则返回观察到的指标(各种延迟百分点、最大利用率的 CPU 和内存等) 和建议的资源要求。 |
| serialize |
将此配置文件转换为 JSON 序列化字典。 |
| wait_for_completion |
等待模型完成分析。 |
get_details
获取分析结果的详细信息。
如果成功,则返回观察到的指标(各种延迟百分点、最大利用率的 CPU 和内存等) 和建议的资源要求。
get_details()
返回
建议的资源要求的字典。
返回类型
serialize
wait_for_completion
等待模型完成分析。
wait_for_completion(show_output=False)
参数
反馈
提交和查看相关反馈