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)
参数
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈