Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
fc0e72fe
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
fc0e72fe
编写于
12月 20, 2022
作者:
姜
姜永久
提交者:
GitHub
12月 20, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rm eager guard tests part3_2 (#49060)
* rm eager guard tests part3_2 * modify
上级
babd26ee
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
0 addition
and
38 deletion
+0
-38
python/paddle/fluid/tests/unittests/test_complex_grad_accumulated.py
...le/fluid/tests/unittests/test_complex_grad_accumulated.py
+0
-7
python/paddle/fluid/tests/unittests/test_complex_kron.py
python/paddle/fluid/tests/unittests/test_complex_kron.py
+0
-6
python/paddle/fluid/tests/unittests/test_complex_matmul.py
python/paddle/fluid/tests/unittests/test_complex_matmul.py
+0
-9
python/paddle/fluid/tests/unittests/test_complex_op.py
python/paddle/fluid/tests/unittests/test_complex_op.py
+0
-5
python/paddle/fluid/tests/unittests/test_complex_reshape.py
python/paddle/fluid/tests/unittests/test_complex_reshape.py
+0
-6
python/paddle/fluid/tests/unittests/test_complex_simplenet.py
...on/paddle/fluid/tests/unittests/test_complex_simplenet.py
+0
-5
未找到文件。
python/paddle/fluid/tests/unittests/test_complex_grad_accumulated.py
浏览文件 @
fc0e72fe
...
@@ -18,7 +18,6 @@ import numpy as np
...
@@ -18,7 +18,6 @@ import numpy as np
import
paddle
import
paddle
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
from
paddle.fluid.framework
import
_test_eager_guard
class
Optimization_ex1
(
paddle
.
nn
.
Layer
):
class
Optimization_ex1
(
paddle
.
nn
.
Layer
):
...
@@ -128,12 +127,6 @@ class TestComplexGradAccumulated(unittest.TestCase):
...
@@ -128,12 +127,6 @@ class TestComplexGradAccumulated(unittest.TestCase):
self
.
train
(
dev
,
dtype
,
3
)
self
.
train
(
dev
,
dtype
,
3
)
self
.
train_no_clear_grad
(
dev
,
dtype
,
3
)
self
.
train_no_clear_grad
(
dev
,
dtype
,
3
)
def
test_eager
(
self
):
with
_test_eager_guard
():
self
.
test_case_one_step
()
self
.
test_case_two_step
()
self
.
test_case_non_param
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
python/paddle/fluid/tests/unittests/test_complex_kron.py
浏览文件 @
fc0e72fe
...
@@ -19,7 +19,6 @@ import numpy as np
...
@@ -19,7 +19,6 @@ import numpy as np
import
paddle
import
paddle
import
paddle.fluid.dygraph
as
dg
import
paddle.fluid.dygraph
as
dg
from
paddle
import
fluid
from
paddle
import
fluid
from
paddle.fluid.framework
import
_test_eager_guard
class
ComplexKronTestCase
(
unittest
.
TestCase
):
class
ComplexKronTestCase
(
unittest
.
TestCase
):
...
@@ -37,7 +36,6 @@ class ComplexKronTestCase(unittest.TestCase):
...
@@ -37,7 +36,6 @@ class ComplexKronTestCase(unittest.TestCase):
def
runTest
(
self
):
def
runTest
(
self
):
for
place
in
self
.
_places
:
for
place
in
self
.
_places
:
self
.
test_kron_api
(
place
)
self
.
test_kron_api
(
place
)
self
.
test_eager
(
place
)
def
test_kron_api
(
self
,
place
):
def
test_kron_api
(
self
,
place
):
with
dg
.
guard
(
place
):
with
dg
.
guard
(
place
):
...
@@ -48,10 +46,6 @@ class ComplexKronTestCase(unittest.TestCase):
...
@@ -48,10 +46,6 @@ class ComplexKronTestCase(unittest.TestCase):
out_var
.
numpy
(),
self
.
ref_result
,
rtol
=
1e-05
out_var
.
numpy
(),
self
.
ref_result
,
rtol
=
1e-05
)
)
def
test_eager
(
self
,
place
):
with
_test_eager_guard
():
self
.
test_kron_api
(
place
)
def
load_tests
(
loader
,
standard_tests
,
pattern
):
def
load_tests
(
loader
,
standard_tests
,
pattern
):
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
python/paddle/fluid/tests/unittests/test_complex_matmul.py
浏览文件 @
fc0e72fe
...
@@ -19,7 +19,6 @@ import numpy as np
...
@@ -19,7 +19,6 @@ import numpy as np
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.dygraph
as
dg
import
paddle.fluid.dygraph
as
dg
from
paddle.fluid.framework
import
_test_eager_guard
class
TestComplexMatMulLayer
(
unittest
.
TestCase
):
class
TestComplexMatMulLayer
(
unittest
.
TestCase
):
...
@@ -135,14 +134,6 @@ class TestComplexMatMulLayer(unittest.TestCase):
...
@@ -135,14 +134,6 @@ class TestComplexMatMulLayer(unittest.TestCase):
self
.
compare_by_basic_api
(
x
,
y
,
np_result
)
self
.
compare_by_basic_api
(
x
,
y
,
np_result
)
self
.
compare_op_by_basic_api
(
x
,
y
,
np_result
)
self
.
compare_op_by_basic_api
(
x
,
y
,
np_result
)
def
test_eager
(
self
):
with
_test_eager_guard
():
self
.
test_complex_xy_gemm
()
self
.
test_complex_xy_gemv
()
self
.
test_real_x_complex_y
()
self
.
test_complex_x_real_y
()
self
.
test_complex_xy
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
python/paddle/fluid/tests/unittests/test_complex_op.py
浏览文件 @
fc0e72fe
...
@@ -20,7 +20,6 @@ from op_test import OpTest
...
@@ -20,7 +20,6 @@ from op_test import OpTest
import
paddle
import
paddle
from
paddle
import
static
from
paddle
import
static
from
paddle.fluid
import
dygraph
from
paddle.fluid
import
dygraph
from
paddle.fluid.framework
import
_test_eager_guard
paddle
.
enable_static
()
paddle
.
enable_static
()
...
@@ -162,10 +161,6 @@ class TestComplexAPI(unittest.TestCase):
...
@@ -162,10 +161,6 @@ class TestComplexAPI(unittest.TestCase):
)
)
np
.
testing
.
assert_allclose
(
self
.
out
,
out_np
,
rtol
=
1e-05
)
np
.
testing
.
assert_allclose
(
self
.
out
,
out_np
,
rtol
=
1e-05
)
def
test_eager
(
self
):
with
_test_eager_guard
():
self
.
test_dygraph
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
python/paddle/fluid/tests/unittests/test_complex_reshape.py
浏览文件 @
fc0e72fe
...
@@ -19,7 +19,6 @@ import numpy as np
...
@@ -19,7 +19,6 @@ import numpy as np
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.dygraph
as
dg
import
paddle.fluid.dygraph
as
dg
from
paddle.fluid.framework
import
_test_eager_guard
class
TestComplexReshape
(
unittest
.
TestCase
):
class
TestComplexReshape
(
unittest
.
TestCase
):
...
@@ -60,11 +59,6 @@ class TestComplexReshape(unittest.TestCase):
...
@@ -60,11 +59,6 @@ class TestComplexReshape(unittest.TestCase):
np
.
reshape
(
x_np
,
shape_
),
y_np
,
rtol
=
1e-05
np
.
reshape
(
x_np
,
shape_
),
y_np
,
rtol
=
1e-05
)
)
def
test_eager
(
self
):
with
_test_eager_guard
():
self
.
test_shape_norm_dims
()
self
.
test_shape_omit_dims
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
python/paddle/fluid/tests/unittests/test_complex_simplenet.py
浏览文件 @
fc0e72fe
...
@@ -18,7 +18,6 @@ import numpy as np
...
@@ -18,7 +18,6 @@ import numpy as np
import
paddle
import
paddle
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
from
paddle.fluid.framework
import
_test_eager_guard
class
Optimization_ex1
(
paddle
.
nn
.
Layer
):
class
Optimization_ex1
(
paddle
.
nn
.
Layer
):
...
@@ -70,10 +69,6 @@ class TestComplexSimpleNet(unittest.TestCase):
...
@@ -70,10 +69,6 @@ class TestComplexSimpleNet(unittest.TestCase):
for
dev
in
self
.
devices
:
for
dev
in
self
.
devices
:
self
.
train
(
dev
)
self
.
train
(
dev
)
def
test_eager
(
self
):
with
_test_eager_guard
():
self
.
test_train_success
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录