提交 c59fb0bc 编写于 作者: W wanghaoshuang

Fix get best ratios.

上级 f8da03ec
......@@ -221,6 +221,7 @@ def get_ratios_by_loss(sensitivities, loss):
"""
ratios = {}
for param, losses in sensitivities.items():
losses = losses.items()
losses.sort()
for i in range(len(losses))[::-1]:
if losses[i][1] <= loss:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册