From ac7cd54c3cdd56bba5d67c3df168f4d6d2789e45 Mon Sep 17 00:00:00 2001 From: littletomatodonkey <2120160898@bit.edu.cn> Date: Fri, 12 Jun 2020 22:34:42 +0800 Subject: [PATCH] remove persistable (#941) --- ppdet/modeling/architectures/blazeface.py | 1 - ppdet/modeling/architectures/faceboxes.py | 1 - 2 files changed, 2 deletions(-) diff --git a/ppdet/modeling/architectures/blazeface.py b/ppdet/modeling/architectures/blazeface.py index 245a43835..62230cc5f 100644 --- a/ppdet/modeling/architectures/blazeface.py +++ b/ppdet/modeling/architectures/blazeface.py @@ -96,7 +96,6 @@ class BlazeFace(object): overlap_threshold=0.35, neg_overlap=0.35) loss = fluid.layers.reduce_sum(loss) - loss.persistable = True return {'loss': loss} else: pred = self.output_decoder(locs, confs, box, box_var) diff --git a/ppdet/modeling/architectures/faceboxes.py b/ppdet/modeling/architectures/faceboxes.py index f5b120ece..b55354902 100644 --- a/ppdet/modeling/architectures/faceboxes.py +++ b/ppdet/modeling/architectures/faceboxes.py @@ -87,7 +87,6 @@ class FaceBoxes(object): overlap_threshold=0.35, neg_overlap=0.35) loss = fluid.layers.reduce_sum(loss) - loss.persistable = True return {'loss': loss} else: pred = self.output_decoder(locs, confs, box, box_var) -- GitLab