From 5fb219eb0d31c14b12a09009a087dc28d772a048 Mon Sep 17 00:00:00 2001 From: wangxinxin08 <69842442+wangxinxin08@users.noreply.github.com> Date: Wed, 19 Aug 2020 19:06:14 +0800 Subject: [PATCH] [cherry-pick]remove unnecessary parameters in IouLoss (#1258) * fix deadlink in docs/tutorials/INSTALL_cn.md, slim/README.md and slim/extensions/distill_pruned_model/README.md --- ppdet/modeling/losses/iou_loss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ppdet/modeling/losses/iou_loss.py b/ppdet/modeling/losses/iou_loss.py index 624cd47c0..d62dd8616 100644 --- a/ppdet/modeling/losses/iou_loss.py +++ b/ppdet/modeling/losses/iou_loss.py @@ -235,4 +235,5 @@ class IouLoss(object): dtype=numpy_array.dtype, default_initializer=NumpyArrayInitializer(numpy_array)) paddle_array.stop_gradient = True + paddle_array.persistable = False return paddle_array -- GitLab