From db762aa609765164912e6d15da461050bff191d6 Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Mon, 28 Sep 2020 03:37:23 +0000 Subject: [PATCH] remove disable_static --- python/paddle/regularizer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/paddle/regularizer.py b/python/paddle/regularizer.py index bcde4f3dcb2..6b124ad3981 100644 --- a/python/paddle/regularizer.py +++ b/python/paddle/regularizer.py @@ -44,7 +44,6 @@ class L1Decay(fluid.regularizer.L1Decay): import paddle from paddle.regularizer import L1Decay import numpy as np - paddle.disable_static() linear = paddle.nn.Linear(10, 10) inp = paddle.rand(shape=[10, 10], dtype="float32") out = linear(inp) @@ -107,7 +106,6 @@ class L2Decay(fluid.regularizer.L2Decay): import paddle from paddle.regularizer import L2Decay import numpy as np - paddle.disable_static() linear = paddle.nn.Linear(10, 10) inp = paddle.rand(shape=[10, 10], dtype="float32") out = linear(inp) -- GitLab