未验证 提交 3e7e0af6 编写于 作者: W Weilong Wu 提交者: GitHub

[Eager] Roll back legacy for fused_attention and fused_feedforward op test (#42719)

上级 82ce2d56
......@@ -26,7 +26,8 @@ from paddle import tensor
from paddle.fluid import layers
import unittest
from op_test import OpTest
from paddle.fluid.framework import default_main_program
from paddle.fluid.framework import default_main_program, _enable_legacy_dygraph
_enable_legacy_dygraph()
default_main_program().random_seed = 42
......
......@@ -23,7 +23,8 @@ from paddle.nn.layer.norm import LayerNorm
from paddle.nn.layer.common import Linear, Dropout
import unittest
from op_test import OpTest
from paddle.fluid.framework import default_main_program
from paddle.fluid.framework import default_main_program, _enable_legacy_dygraph
_enable_legacy_dygraph()
class TestFusedFFNOp(OpTest):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册