提交 db762aa6 编写于 作者: littletomatodonkey's avatar littletomatodonkey

remove disable_static

上级 8aa6a27c
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册