Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
d6b66924
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d6b66924
编写于
4月 24, 2022
作者:
P
pangyoki
提交者:
GitHub
4月 24, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
disable unittest failed in eager CI in temporary (#42101)
* test=py3-eager * test=py3-eager * test=py3-eager
上级
79f717d6
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
32 addition
and
3 deletion
+32
-3
python/paddle/fluid/tests/custom_op/test_custom_tanh_double_grad.py
...dle/fluid/tests/custom_op/test_custom_tanh_double_grad.py
+2
-1
python/paddle/fluid/tests/unittests/check_nan_inf_base_dygraph.py
...addle/fluid/tests/unittests/check_nan_inf_base_dygraph.py
+2
-0
python/paddle/fluid/tests/unittests/dygraph_to_static/test_simnet_v2.py
...fluid/tests/unittests/dygraph_to_static/test_simnet_v2.py
+3
-0
python/paddle/fluid/tests/unittests/dygraph_to_static/test_spec_names.py
...luid/tests/unittests/dygraph_to_static/test_spec_names.py
+2
-0
python/paddle/fluid/tests/unittests/test_bfgs.py
python/paddle/fluid/tests/unittests/test_bfgs.py
+3
-0
python/paddle/fluid/tests/unittests/test_diff_op.py
python/paddle/fluid/tests/unittests/test_diff_op.py
+2
-0
python/paddle/fluid/tests/unittests/test_dropout_op.py
python/paddle/fluid/tests/unittests/test_dropout_op.py
+3
-1
python/paddle/fluid/tests/unittests/test_eigh_op.py
python/paddle/fluid/tests/unittests/test_eigh_op.py
+2
-0
python/paddle/fluid/tests/unittests/test_faster_tokenizer_op.py
.../paddle/fluid/tests/unittests/test_faster_tokenizer_op.py
+2
-1
python/paddle/fluid/tests/unittests/test_label_smooth_functional.py
...dle/fluid/tests/unittests/test_label_smooth_functional.py
+2
-0
python/paddle/fluid/tests/unittests/test_lbfgs.py
python/paddle/fluid/tests/unittests/test_lbfgs.py
+3
-0
python/paddle/fluid/tests/unittests/test_nan_inf.py
python/paddle/fluid/tests/unittests/test_nan_inf.py
+2
-0
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
...d/tests/unittests/test_nn_functional_embedding_dygraph.py
+2
-0
python/paddle/fluid/tests/unittests/test_tensor_scalar_type_promotion_dynamic.py
...ts/unittests/test_tensor_scalar_type_promotion_dynamic.py
+2
-0
未找到文件。
python/paddle/fluid/tests/custom_op/test_custom_tanh_double_grad.py
浏览文件 @
d6b66924
...
...
@@ -21,7 +21,8 @@ import paddle.static as static
from
paddle.utils.cpp_extension
import
load
,
get_build_directory
from
paddle.utils.cpp_extension.extension_utils
import
run_cmd
from
utils
import
paddle_includes
,
extra_cc_args
,
extra_nvcc_args
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
,
_enable_legacy_dygraph
_enable_legacy_dygraph
()
# Because Windows don't use docker, the shared lib already exists in the
# cache dir, it will not be compiled again unless the shared lib is removed.
...
...
python/paddle/fluid/tests/unittests/check_nan_inf_base_dygraph.py
浏览文件 @
d6b66924
...
...
@@ -25,6 +25,8 @@ os.environ[str("GLOG_vmodule")] = str("nan_inf_utils_detail=10")
import
paddle
import
paddle.nn
as
nn
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
np
.
random
.
seed
(
0
)
...
...
python/paddle/fluid/tests/unittests/dygraph_to_static/test_simnet_v2.py
浏览文件 @
d6b66924
...
...
@@ -20,6 +20,9 @@ import unittest
from
simnet_dygraph_model_v2
import
BOW
,
HingeLoss
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
SEED
=
102
random
.
seed
(
SEED
)
...
...
python/paddle/fluid/tests/unittests/dygraph_to_static/test_spec_names.py
浏览文件 @
d6b66924
...
...
@@ -16,6 +16,8 @@ import paddle
from
paddle.nn
import
Layer
import
numpy
as
np
import
unittest
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
class
Net
(
Layer
):
...
...
python/paddle/fluid/tests/unittests/test_bfgs.py
浏览文件 @
d6b66924
...
...
@@ -21,6 +21,9 @@ import paddle.nn.functional as F
from
paddle.incubate.optimizer.functional.bfgs
import
minimize_bfgs
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
np
.
random
.
seed
(
123
)
...
...
python/paddle/fluid/tests/unittests/test_diff_op.py
浏览文件 @
d6b66924
...
...
@@ -19,6 +19,8 @@ import paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
class
TestDiffOp
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_dropout_op.py
浏览文件 @
d6b66924
...
...
@@ -22,7 +22,8 @@ import paddle
import
paddle.static
as
static
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
,
_enable_legacy_dygraph
_enable_legacy_dygraph
()
import
os
from
paddle
import
_C_ops
...
...
@@ -951,6 +952,7 @@ class TestDropoutBackward(unittest.TestCase):
return
mask
.
astype
(
"float32"
)
def
test_backward_downscale_in_infer
(
self
):
_enable_legacy_dygraph
()
for
place
in
self
.
places
:
with
fluid
.
dygraph
.
guard
(
place
):
...
...
python/paddle/fluid/tests/unittests/test_eigh_op.py
浏览文件 @
d6b66924
...
...
@@ -19,6 +19,8 @@ import numpy as np
import
paddle
from
op_test
import
OpTest
from
gradient_checker
import
grad_check
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
def
valid_eigh_result
(
A
,
eigh_value
,
eigh_vector
,
uplo
):
...
...
python/paddle/fluid/tests/unittests/test_faster_tokenizer_op.py
浏览文件 @
d6b66924
...
...
@@ -22,7 +22,8 @@ import numpy as np
import
paddle
import
paddle.nn
as
nn
from
paddle.dataset.common
import
DATA_HOME
from
paddle.fluid.framework
import
core
,
_non_static_mode
from
paddle.fluid.framework
import
core
,
_non_static_mode
,
_enable_legacy_dygraph
_enable_legacy_dygraph
()
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle
import
_C_ops
...
...
python/paddle/fluid/tests/unittests/test_label_smooth_functional.py
浏览文件 @
d6b66924
...
...
@@ -19,6 +19,8 @@ import paddle.fluid.dygraph as dg
import
paddle.nn.functional
as
F
import
paddle.fluid.initializer
as
I
import
unittest
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
class
LabelSmoothTestCase
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_lbfgs.py
浏览文件 @
d6b66924
...
...
@@ -21,6 +21,9 @@ import paddle.nn.functional as F
from
paddle.incubate.optimizer.functional.lbfgs
import
minimize_lbfgs
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
np
.
random
.
seed
(
123
)
...
...
python/paddle/fluid/tests/unittests/test_nan_inf.py
浏览文件 @
d6b66924
...
...
@@ -20,6 +20,8 @@ import os
import
sys
import
subprocess
import
paddle
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
浏览文件 @
d6b66924
...
...
@@ -19,6 +19,8 @@ import unittest
import
paddle
import
paddle.nn
as
nn
import
numpy
as
np
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
paddle
.
disable_static
()
...
...
python/paddle/fluid/tests/unittests/test_tensor_scalar_type_promotion_dynamic.py
浏览文件 @
d6b66924
...
...
@@ -18,6 +18,8 @@ import unittest
import
numpy
as
np
import
paddle
from
paddle.fluid.framework
import
_enable_legacy_dygraph
_enable_legacy_dygraph
()
# Support types are ref from `paddle.tensor.math`
# - Related paddle dtypes:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录