Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
2c407ef0
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看板
未验证
提交
2c407ef0
编写于
10月 11, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
10月 11, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] remove unused import in unittests/test_[k-o] (#46704)
上级
3b5064d6
变更
79
隐藏空白更改
内联
并排
Showing
79 changed file
with
31 addition
and
179 deletion
+31
-179
python/paddle/fluid/tests/unittests/test_label_smooth_functional.py
...dle/fluid/tests/unittests/test_label_smooth_functional.py
+1
-2
python/paddle/fluid/tests/unittests/test_lamb_op.py
python/paddle/fluid/tests/unittests/test_lamb_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_lambv2_op.py
python/paddle/fluid/tests/unittests/test_lambv2_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_launch_coverage.py
python/paddle/fluid/tests/unittests/test_launch_coverage.py
+0
-7
python/paddle/fluid/tests/unittests/test_layer_norm_op_v2.py
python/paddle/fluid/tests/unittests/test_layer_norm_op_v2.py
+1
-4
python/paddle/fluid/tests/unittests/test_layout_autotune.py
python/paddle/fluid/tests/unittests/test_layout_autotune.py
+0
-1
python/paddle/fluid/tests/unittests/test_lcm.py
python/paddle/fluid/tests/unittests/test_lcm.py
+0
-2
python/paddle/fluid/tests/unittests/test_learning_rate_scheduler.py
...dle/fluid/tests/unittests/test_learning_rate_scheduler.py
+0
-1
python/paddle/fluid/tests/unittests/test_linalg_pinv_op.py
python/paddle/fluid/tests/unittests/test_linalg_pinv_op.py
+0
-4
python/paddle/fluid/tests/unittests/test_linear.py
python/paddle/fluid/tests/unittests/test_linear.py
+1
-4
python/paddle/fluid/tests/unittests/test_linspace.py
python/paddle/fluid/tests/unittests/test_linspace.py
+1
-1
python/paddle/fluid/tests/unittests/test_listen_and_serv_op.py
...n/paddle/fluid/tests/unittests/test_listen_and_serv_op.py
+0
-3
python/paddle/fluid/tests/unittests/test_load_op.py
python/paddle/fluid/tests/unittests/test_load_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_load_op_xpu.py
python/paddle/fluid/tests/unittests/test_load_op_xpu.py
+0
-1
python/paddle/fluid/tests/unittests/test_load_vars_shape_check.py
...addle/fluid/tests/unittests/test_load_vars_shape_check.py
+0
-2
python/paddle/fluid/tests/unittests/test_lod_append_op.py
python/paddle/fluid/tests/unittests/test_lod_append_op.py
+1
-5
python/paddle/fluid/tests/unittests/test_lod_array_length_op.py
.../paddle/fluid/tests/unittests/test_lod_array_length_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_logcumsumexp_op.py
python/paddle/fluid/tests/unittests/test_logcumsumexp_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_logical_op.py
python/paddle/fluid/tests/unittests/test_logical_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_lookahead.py
python/paddle/fluid/tests/unittests/test_lookahead.py
+1
-4
python/paddle/fluid/tests/unittests/test_lookup_table_dequant_op.py
...dle/fluid/tests/unittests/test_lookup_table_dequant_op.py
+1
-6
python/paddle/fluid/tests/unittests/test_lookup_table_v2_bf16_op.py
...dle/fluid/tests/unittests/test_lookup_table_v2_bf16_op.py
+1
-2
python/paddle/fluid/tests/unittests/test_lr_scheduler.py
python/paddle/fluid/tests/unittests/test_lr_scheduler.py
+0
-3
python/paddle/fluid/tests/unittests/test_lrn_op.py
python/paddle/fluid/tests/unittests/test_lrn_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_lstm_op.py
python/paddle/fluid/tests/unittests/test_lstm_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_lu_op.py
python/paddle/fluid/tests/unittests/test_lu_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_lu_unpack_op.py
python/paddle/fluid/tests/unittests/test_lu_unpack_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_manual_seed.py
python/paddle/fluid/tests/unittests/test_manual_seed.py
+0
-2
python/paddle/fluid/tests/unittests/test_margin_cross_entropy_op.py
...dle/fluid/tests/unittests/test_margin_cross_entropy_op.py
+0
-3
python/paddle/fluid/tests/unittests/test_marker_op.py
python/paddle/fluid/tests/unittests/test_marker_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_masked_select_op.py
python/paddle/fluid/tests/unittests/test_masked_select_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_math_op_patch_var_base.py
...ddle/fluid/tests/unittests/test_math_op_patch_var_base.py
+1
-1
python/paddle/fluid/tests/unittests/test_matmul_op.py
python/paddle/fluid/tests/unittests/test_matmul_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_matmul_v2_op.py
python/paddle/fluid/tests/unittests/test_matmul_v2_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_matrix_power_op.py
python/paddle/fluid/tests/unittests/test_matrix_power_op.py
+0
-4
python/paddle/fluid/tests/unittests/test_matrix_rank_op.py
python/paddle/fluid/tests/unittests/test_matrix_rank_op.py
+1
-4
python/paddle/fluid/tests/unittests/test_max_min_amax_amin_op.py
...paddle/fluid/tests/unittests/test_max_min_amax_amin_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_max_op.py
python/paddle/fluid/tests/unittests/test_max_op.py
+1
-4
python/paddle/fluid/tests/unittests/test_mean_iou.py
python/paddle/fluid/tests/unittests/test_mean_iou.py
+0
-1
python/paddle/fluid/tests/unittests/test_mean_op.py
python/paddle/fluid/tests/unittests/test_mean_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_memcpy_op.py
python/paddle/fluid/tests/unittests/test_memcpy_op.py
+1
-4
python/paddle/fluid/tests/unittests/test_meshgrid_op.py
python/paddle/fluid/tests/unittests/test_meshgrid_op.py
+1
-2
python/paddle/fluid/tests/unittests/test_min_op.py
python/paddle/fluid/tests/unittests/test_min_op.py
+1
-4
python/paddle/fluid/tests/unittests/test_mine_hard_examples_op.py
...addle/fluid/tests/unittests/test_mine_hard_examples_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_mix_precision_all_reduce_fuse.py
...uid/tests/unittests/test_mix_precision_all_reduce_fuse.py
+0
-3
python/paddle/fluid/tests/unittests/test_modelaverage.py
python/paddle/fluid/tests/unittests/test_modelaverage.py
+0
-3
python/paddle/fluid/tests/unittests/test_monitor.py
python/paddle/fluid/tests/unittests/test_monitor.py
+0
-1
python/paddle/fluid/tests/unittests/test_mul_op.py
python/paddle/fluid/tests/unittests/test_mul_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_multi_dot_op.py
python/paddle/fluid/tests/unittests/test_multi_dot_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_multinomial_op.py
python/paddle/fluid/tests/unittests/test_multinomial_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_multiply.py
python/paddle/fluid/tests/unittests/test_multiply.py
+1
-1
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_dataset.py
...d/tests/unittests/test_multiprocess_dataloader_dataset.py
+2
-2
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_dynamic.py
...d/tests/unittests/test_multiprocess_dataloader_dynamic.py
+1
-4
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_exception.py
...tests/unittests/test_multiprocess_dataloader_exception.py
+0
-6
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_iterable_dataset_dynamic.py
.../test_multiprocess_dataloader_iterable_dataset_dynamic.py
+1
-4
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_iterable_dataset_split.py
...ts/test_multiprocess_dataloader_iterable_dataset_split.py
+1
-1
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_iterable_dataset_static.py
...s/test_multiprocess_dataloader_iterable_dataset_static.py
+1
-3
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_static.py
...id/tests/unittests/test_multiprocess_dataloader_static.py
+1
-3
python/paddle/fluid/tests/unittests/test_multiprocess_reader_exception.py
...uid/tests/unittests/test_multiprocess_reader_exception.py
+0
-2
python/paddle/fluid/tests/unittests/test_mv_op.py
python/paddle/fluid/tests/unittests/test_mv_op.py
+0
-3
python/paddle/fluid/tests/unittests/test_nanmean_api.py
python/paddle/fluid/tests/unittests/test_nanmean_api.py
+0
-2
python/paddle/fluid/tests/unittests/test_nansum_api.py
python/paddle/fluid/tests/unittests/test_nansum_api.py
+0
-2
python/paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py
...paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_network_with_dtype.py
...n/paddle/fluid/tests/unittests/test_network_with_dtype.py
+0
-2
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
...d/tests/unittests/test_nn_functional_embedding_dygraph.py
+0
-1
python/paddle/fluid/tests/unittests/test_nn_functional_hot_op.py
...paddle/fluid/tests/unittests/test_nn_functional_hot_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_nn_matmul_v2_grad.py
...on/paddle/fluid/tests/unittests/test_nn_matmul_v2_grad.py
+0
-1
python/paddle/fluid/tests/unittests/test_nn_sigmoid_op.py
python/paddle/fluid/tests/unittests/test_nn_sigmoid_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_nonzero_api.py
python/paddle/fluid/tests/unittests/test_nonzero_api.py
+0
-1
python/paddle/fluid/tests/unittests/test_normalize.py
python/paddle/fluid/tests/unittests/test_normalize.py
+0
-1
python/paddle/fluid/tests/unittests/test_number_count_op.py
python/paddle/fluid/tests/unittests/test_number_count_op.py
+0
-4
python/paddle/fluid/tests/unittests/test_numel_op.py
python/paddle/fluid/tests/unittests/test_numel_op.py
+0
-3
python/paddle/fluid/tests/unittests/test_one_hot_op.py
python/paddle/fluid/tests/unittests/test_one_hot_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_one_hot_v2_op.py
python/paddle/fluid/tests/unittests/test_one_hot_v2_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_ones_like.py
python/paddle/fluid/tests/unittests/test_ones_like.py
+1
-1
python/paddle/fluid/tests/unittests/test_ones_op.py
python/paddle/fluid/tests/unittests/test_ones_op.py
+0
-3
python/paddle/fluid/tests/unittests/test_onnx_export.py
python/paddle/fluid/tests/unittests/test_onnx_export.py
+1
-4
python/paddle/fluid/tests/unittests/test_op_function_generator.py
...addle/fluid/tests/unittests/test_op_function_generator.py
+2
-3
python/paddle/fluid/tests/unittests/test_outer.py
python/paddle/fluid/tests/unittests/test_outer.py
+1
-1
未找到文件。
python/paddle/fluid/tests/unittests/test_label_smooth_functional.py
浏览文件 @
2c407ef0
...
...
@@ -14,10 +14,9 @@
import
numpy
as
np
import
paddle
from
paddle
import
fluid
,
nn
from
paddle
import
fluid
import
paddle.fluid.dygraph
as
dg
import
paddle.nn.functional
as
F
import
paddle.fluid.initializer
as
I
import
unittest
...
...
python/paddle/fluid/tests/unittests/test_lamb_op.py
浏览文件 @
2c407ef0
...
...
@@ -16,7 +16,6 @@ import unittest
import
numpy
as
np
from
op_test
import
OpTest
import
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid
import
core
from
paddle.fluid.op
import
Operator
...
...
python/paddle/fluid/tests/unittests/test_lambv2_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,9 +14,7 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
from
paddle.fluid
import
core
from
paddle.fluid.op
import
Operator
from
paddle.fluid.dygraph.base
import
switch_to_static_graph
import
paddle
import
paddle.fluid
as
fluid
...
...
python/paddle/fluid/tests/unittests/test_launch_coverage.py
浏览文件 @
2c407ef0
...
...
@@ -12,14 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
sys
import
subprocess
import
os
import
time
import
six
import
copy
import
unittest
import
paddle.fluid
as
fluid
from
argparse
import
ArgumentParser
,
REMAINDER
from
paddle.distributed.utils.launch_utils
import
_print_arguments
,
get_gpus
,
get_cluster_from_args
...
...
python/paddle/fluid/tests/unittests/test_layer_norm_op_v2.py
浏览文件 @
2c407ef0
...
...
@@ -12,14 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
unittest
import
numpy
as
np
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
from
op_test
import
OpTest
,
_set_use_system_allocator
from
paddle.fluid.framework
import
grad_var_name
,
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_layout_autotune.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,6 @@ import json
import
tempfile
import
unittest
import
warnings
import
numpy
import
paddle
import
paddle.nn.functional
as
F
...
...
python/paddle/fluid/tests/unittests/test_lcm.py
浏览文件 @
2c407ef0
...
...
@@ -17,8 +17,6 @@ import numpy as np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.fluid
import
Program
,
program_guard
from
op_test
import
OpTest
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/test_learning_rate_scheduler.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,6 @@ import math
import
numpy
as
np
import
unittest
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.framework
as
framework
...
...
python/paddle/fluid/tests/unittests/test_linalg_pinv_op.py
浏览文件 @
2c407ef0
...
...
@@ -16,11 +16,7 @@ import unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
from
op_test
import
OpTest
,
skip_check_grad_ci
from
gradient_checker
import
grad_check
from
decorator_helper
import
prog_scope
class
LinalgPinvTestCase
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_linear.py
浏览文件 @
2c407ef0
...
...
@@ -15,12 +15,9 @@
import
unittest
import
numpy
as
np
import
paddle.fluid.core
as
core
from
op_test
import
OpTest
import
paddle
from
paddle
import
fluid
,
nn
import
paddle.fluid.dygraph
as
dg
from
paddle
import
fluid
import
paddle.nn.functional
as
F
import
paddle.fluid.initializer
as
I
class
LinearTestCase
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_linspace.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,7 @@ import numpy as np
from
op_test
import
OpTest
import
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid
import
core
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_listen_and_serv_op.py
浏览文件 @
2c407ef0
...
...
@@ -19,12 +19,9 @@ silentremove("test_list_and_serv_run_empty_optimize_block.flag")
import
paddle
import
paddle.fluid
as
fluid
import
signal
import
subprocess
import
time
import
unittest
from
multiprocessing
import
Process
from
op_test
import
OpTest
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/test_load_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,7 +14,6 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
randomize_probability
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
os
...
...
python/paddle/fluid/tests/unittests/test_load_op_xpu.py
浏览文件 @
2c407ef0
...
...
@@ -16,7 +16,6 @@ import unittest
import
numpy
as
np
import
os
import
tempfile
from
op_test
import
OpTest
,
randomize_probability
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_load_vars_shape_check.py
浏览文件 @
2c407ef0
...
...
@@ -15,8 +15,6 @@
import
unittest
import
os
import
shutil
import
numpy
as
np
import
paddle
as
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid.executor
import
Executor
...
...
python/paddle/fluid/tests/unittests/test_lod_append_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,11 +15,7 @@
import
unittest
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid.op
import
Operator
from
paddle.fluid.backward
import
append_backward
from
paddle.fluid
import
Program
class
TestLoDAppendAPI
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_lod_array_length_op.py
浏览文件 @
2c407ef0
...
...
@@ -19,7 +19,7 @@ import paddle.fluid.layers as layers
from
paddle.fluid.executor
import
Executor
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid
import
Program
,
program_guard
import
numpy
...
...
python/paddle/fluid/tests/unittests/test_logcumsumexp_op.py
浏览文件 @
2c407ef0
...
...
@@ -19,8 +19,6 @@ import numpy as np
import
paddle
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/test_logical_op.py
浏览文件 @
2c407ef0
...
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
op_test
import
unittest
import
numpy
as
np
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_lookahead.py
浏览文件 @
2c407ef0
...
...
@@ -14,13 +14,10 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
from
paddle.fluid
import
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
import
paddle
import
paddle.nn
as
nn
from
paddle.fluid.framework
import
_test_eager_guard
,
_in_legacy_dygraph
from
paddle.fluid.framework
import
_test_eager_guard
LOOKAHEAD_K
=
5
LOOKAHEAD_ALPHA
=
0.2
...
...
python/paddle/fluid/tests/unittests/test_lookup_table_dequant_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,12 +14,7 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.compat
as
cpt
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
from
op_test
import
OpTest
import
struct
...
...
python/paddle/fluid/tests/unittests/test_lookup_table_v2_bf16_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,8 +15,7 @@
import
unittest
import
numpy
as
np
import
paddle
from
paddle.fluid.tests.unittests.op_test
import
(
skip_check_grad_ci
,
convert_uint16_to_float
)
from
paddle.fluid.tests.unittests.op_test
import
convert_uint16_to_float
from
paddle.fluid.tests.unittests.test_lookup_table_bf16_op
import
(
_lookup
,
TestLookupTableBF16Op
,
TestLookupTableBF16OpIds4D
,
TestLookupTableBF16OpWIsSelectedRows
,
...
...
python/paddle/fluid/tests/unittests/test_lr_scheduler.py
浏览文件 @
2c407ef0
...
...
@@ -12,15 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
copy
import
math
import
numpy
as
np
import
unittest
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.framework
as
framework
import
paddle.fluid.core
as
core
...
...
python/paddle/fluid/tests/unittests/test_lrn_op.py
浏览文件 @
2c407ef0
...
...
@@ -18,7 +18,7 @@ import numpy as np
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
op_test
import
OpTest
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid
import
Program
,
program_guard
class
TestLRNOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/test_lstm_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,7 +14,7 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
from
op_test
import
OpTest
from
paddle
import
fluid
from
paddle.fluid.layers
import
lstm
as
LSTM
from
paddle.fluid.layers
import
fill_constant
...
...
python/paddle/fluid/tests/unittests/test_lu_op.py
浏览文件 @
2c407ef0
...
...
@@ -18,7 +18,6 @@ import itertools
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
import
scipy
import
scipy.linalg
...
...
python/paddle/fluid/tests/unittests/test_lu_unpack_op.py
浏览文件 @
2c407ef0
...
...
@@ -18,7 +18,6 @@ import itertools
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
import
scipy
import
scipy.linalg
...
...
python/paddle/fluid/tests/unittests/test_manual_seed.py
浏览文件 @
2c407ef0
...
...
@@ -16,8 +16,6 @@ import unittest
import
paddle
import
paddle.fluid
as
fluid
from
paddle.framework
import
seed
from
paddle.fluid.framework
import
Program
,
default_main_program
,
default_startup_program
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/test_margin_cross_entropy_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,10 +15,7 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
import
math
import
random
import
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid
import
core
from
paddle.fluid
import
Program
,
program_guard
...
...
python/paddle/fluid/tests/unittests/test_marker_op.py
浏览文件 @
2c407ef0
...
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
from
paddle.distributed.fleet.meta_optimizers.common
import
OpRole
...
...
python/paddle/fluid/tests/unittests/test_masked_select_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,7 +15,6 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
import
paddle.fluid
as
fluid
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_math_op_patch_var_base.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,7 @@ import paddle
import
paddle.fluid
as
fluid
import
numpy
as
np
import
inspect
from
paddle.fluid.framework
import
_test_eager_guard
,
_in_legacy_dygraph
from
paddle.fluid.framework
import
_test_eager_guard
class
TestMathOpPatchesVarBase
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_matmul_op.py
浏览文件 @
2c407ef0
...
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
paddle.fluid.core
as
core
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/test_matmul_v2_op.py
浏览文件 @
2c407ef0
...
...
@@ -20,7 +20,6 @@ import paddle.fluid.core as core
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.framework
as
framework
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_matrix_power_op.py
浏览文件 @
2c407ef0
...
...
@@ -359,10 +359,8 @@ class TestMatrixPowerSingularAPI(unittest.TestCase):
fetch_list
=
[
result
])
except
RuntimeError
as
ex
:
print
(
"The mat is singular"
)
pass
except
ValueError
as
ex
:
print
(
"The mat is singular"
)
pass
def
test_static
(
self
):
paddle
.
enable_static
()
...
...
@@ -379,10 +377,8 @@ class TestMatrixPowerSingularAPI(unittest.TestCase):
result
=
paddle
.
linalg
.
matrix_power
(
input
,
-
2
)
except
RuntimeError
as
ex
:
print
(
"The mat is singular"
)
pass
except
ValueError
as
ex
:
print
(
"The mat is singular"
)
pass
if
__name__
==
"__main__"
:
...
...
python/paddle/fluid/tests/unittests/test_matrix_rank_op.py
浏览文件 @
2c407ef0
...
...
@@ -16,13 +16,10 @@ import unittest
import
numpy
as
np
from
paddle.fluid.tests.unittests.op_test
import
OpTest
,
convert_float_to_uint16
from
paddle.fluid.tests.unittests.op_test
import
OpTest
import
paddle
import
paddle.nn
as
nn
import
paddle.nn.functional
as
F
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.fluid
import
compiler
,
Program
,
program_guard
paddle
.
enable_static
()
SEED
=
2049
...
...
python/paddle/fluid/tests/unittests/test_max_min_amax_amin_op.py
浏览文件 @
2c407ef0
...
...
@@ -17,8 +17,6 @@ import numpy as np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.fluid
import
Program
,
program_guard
from
op_test
import
OpTest
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/test_max_op.py
浏览文件 @
2c407ef0
...
...
@@ -12,15 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
unittest
import
tempfile
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
,
check_out_dtype
from
op_test
import
check_out_dtype
import
paddle
from
paddle.fluid.framework
import
_test_eager_guard
import
paddle.fluid.core
as
core
import
paddle.inference
as
paddle_infer
from
test_sum_op
import
TestReduceOPTensorAxisBase
...
...
python/paddle/fluid/tests/unittests/test_mean_iou.py
浏览文件 @
2c407ef0
...
...
@@ -16,7 +16,6 @@ import unittest
import
numpy
as
np
from
op_test
import
OpTest
import
paddle.fluid
as
fluid
import
paddle
def
compute_mean_iou
(
predictions
,
labels
,
num_classes
,
in_wrongs
,
in_corrects
,
...
...
python/paddle/fluid/tests/unittests/test_mean_op.py
浏览文件 @
2c407ef0
...
...
@@ -19,7 +19,6 @@ import paddle
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
test_sum_op
import
TestReduceOPTensorAxisBase
import
gradient_checker
from
decorator_helper
import
prog_scope
...
...
python/paddle/fluid/tests/unittests/test_memcpy_op.py
浏览文件 @
2c407ef0
...
...
@@ -12,15 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
op_test
import
numpy
as
np
import
unittest
import
paddle
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid.backward
import
append_backward
from
paddle.fluid
import
Program
,
program_guard
class
TestMemcpy_FillConstant
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_meshgrid_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,10 +14,9 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
from
op_test
import
OpTest
import
paddle.fluid
as
fluid
import
paddle
from
paddle.fluid
import
compiler
,
Program
,
program_guard
,
core
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_min_op.py
浏览文件 @
2c407ef0
...
...
@@ -12,15 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
unittest
import
tempfile
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
,
check_out_dtype
from
op_test
import
check_out_dtype
import
paddle
import
paddle.fluid.core
as
core
from
paddle.fluid.framework
import
_test_eager_guard
import
paddle.inference
as
paddle_infer
from
test_sum_op
import
TestReduceOPTensorAxisBase
...
...
python/paddle/fluid/tests/unittests/test_mine_hard_examples_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,8 +14,6 @@
import
unittest
import
numpy
as
np
import
sys
import
math
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/test_mix_precision_all_reduce_fuse.py
浏览文件 @
2c407ef0
...
...
@@ -13,9 +13,6 @@
# limitations under the License.
import
paddle.fluid.core
as
core
import
math
import
os
import
sys
import
unittest
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/test_modelaverage.py
浏览文件 @
2c407ef0
...
...
@@ -14,9 +14,6 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
from
paddle.fluid
import
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
import
paddle
import
paddle.nn
as
nn
...
...
python/paddle/fluid/tests/unittests/test_monitor.py
浏览文件 @
2c407ef0
...
...
@@ -21,7 +21,6 @@ paddle.enable_static()
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
numpy
as
np
import
os
import
unittest
import
tempfile
...
...
python/paddle/fluid/tests/unittests/test_mul_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,7 +14,6 @@
import
unittest
import
numpy
as
np
import
paddle
import
paddle.fluid.core
as
core
import
sys
...
...
python/paddle/fluid/tests/unittests/test_multi_dot_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,7 +14,7 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
,
skip_check_grad_ci
from
op_test
import
OpTest
from
numpy.linalg
import
multi_dot
from
op_test
import
OpTest
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_multinomial_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,7 +15,6 @@
import
unittest
import
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid
import
core
from
op_test
import
OpTest
import
numpy
as
np
import
os
...
...
python/paddle/fluid/tests/unittests/test_multiply.py
浏览文件 @
2c407ef0
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
paddle
import
paddle.tensor
as
tensor
from
paddle.static
import
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
,
in_dygraph_mode
from
paddle.fluid.framework
import
_test_eager_guard
class
TestMultiplyApi
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_dataset.py
浏览文件 @
2c407ef0
...
...
@@ -18,8 +18,8 @@ import numpy as np
import
paddle
import
paddle.fluid
as
fluid
from
paddle.io
import
Dataset
,
IterableDataset
,
TensorDataset
,
\
ComposeDataset
,
ChainDataset
,
DataLoader
,
random_split
,
Subset
from
paddle.fluid.framework
import
_test_eager_guard
,
_in_legacy_dygraph
ComposeDataset
,
ChainDataset
,
DataLoader
from
paddle.fluid.framework
import
_test_eager_guard
IMAGE_SIZE
=
32
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_dynamic.py
浏览文件 @
2c407ef0
...
...
@@ -12,18 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
import
six
import
time
import
unittest
import
multiprocessing
import
numpy
as
np
import
paddle.fluid
as
fluid
from
paddle.io
import
Data
set
,
BatchSampler
,
Data
Loader
from
paddle.io
import
DataLoader
from
paddle.fluid.dygraph.nn
import
Linear
from
paddle.fluid.dygraph.base
import
to_variable
from
test_multiprocess_dataloader_static
import
RandomDataset
,
RandomBatchedDataset
,
prepare_places
from
test_multiprocess_dataloader_static
import
EPOCH_NUM
,
BATCH_SIZE
,
IMAGE_SIZE
,
SAMPLE_NUM
,
CLASS_NUM
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_exception.py
浏览文件 @
2c407ef0
...
...
@@ -12,10 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
import
six
import
time
import
unittest
import
multiprocessing
import
numpy
as
np
...
...
@@ -23,8 +19,6 @@ import numpy as np
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.io
import
Dataset
,
IterableDataset
,
BatchSampler
,
DataLoader
from
paddle.fluid.dygraph.nn
import
Linear
from
paddle.fluid.dygraph.base
import
to_variable
from
paddle.fluid.dataloader.dataloader_iter
import
_worker_loop
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_iterable_dataset_dynamic.py
浏览文件 @
2c407ef0
...
...
@@ -12,18 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
import
six
import
time
import
unittest
import
multiprocessing
import
numpy
as
np
import
paddle.fluid
as
fluid
from
paddle.io
import
Data
set
,
BatchSampler
,
Data
Loader
from
paddle.io
import
DataLoader
from
paddle.fluid.dygraph.nn
import
Linear
from
paddle.fluid.dygraph.base
import
to_variable
from
test_multiprocess_dataloader_iterable_dataset_static
import
RandomDataset
,
RandomBatchedDataset
,
prepare_places
from
test_multiprocess_dataloader_iterable_dataset_static
import
EPOCH_NUM
,
BATCH_SIZE
,
IMAGE_SIZE
,
SAMPLE_NUM
,
CLASS_NUM
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_iterable_dataset_split.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,7 @@ import unittest
import
numpy
as
np
import
paddle.fluid
as
fluid
from
paddle.io
import
IterableDataset
,
BatchSampler
,
DataLoader
,
get_worker_info
from
paddle.io
import
DataLoader
,
IterableDataset
,
get_worker_info
class
RangeIterableDatasetSplit
(
IterableDataset
):
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_iterable_dataset_static.py
浏览文件 @
2c407ef0
...
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
import
six
import
time
import
unittest
import
multiprocessing
import
numpy
as
np
import
paddle.fluid
as
fluid
from
paddle.io
import
IterableDataset
,
BatchSampler
,
DataLoader
,
get_worker_info
from
paddle.io
import
DataLoader
,
IterableDataset
EPOCH_NUM
=
2
BATCH_SIZE
=
8
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_dataloader_static.py
浏览文件 @
2c407ef0
...
...
@@ -12,17 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
import
six
import
time
import
unittest
import
multiprocessing
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
from
paddle.io
import
Data
set
,
BatchSampler
,
DataLoader
from
paddle.io
import
Data
Loader
,
Dataset
EPOCH_NUM
=
3
BATCH_SIZE
=
8
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_reader_exception.py
浏览文件 @
2c407ef0
...
...
@@ -17,8 +17,6 @@ import paddle.fluid as fluid
from
paddle.reader
import
multiprocess_reader
import
unittest
import
numpy
as
np
import
six
import
sys
class
ReaderException
(
Exception
):
...
...
python/paddle/fluid/tests/unittests/test_mv_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,9 +15,6 @@
import
unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
from
paddle.static
import
program_guard
,
Program
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/test_nanmean_api.py
浏览文件 @
2c407ef0
...
...
@@ -15,9 +15,7 @@
import
unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.fluid
import
Program
,
program_guard
np
.
random
.
seed
(
10
)
...
...
python/paddle/fluid/tests/unittests/test_nansum_api.py
浏览文件 @
2c407ef0
...
...
@@ -16,8 +16,6 @@ import unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.fluid
import
Program
,
program_guard
class
API_Test_Nansum
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_nearest_interp_v2_op.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,6 @@ import numpy as np
from
op_test
import
OpTest
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
import
paddle.nn
as
nn
import
paddle
from
paddle.nn.functional
import
interpolate
...
...
python/paddle/fluid/tests/unittests/test_network_with_dtype.py
浏览文件 @
2c407ef0
...
...
@@ -14,11 +14,9 @@
import
unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
from
paddle.fluid.executor
import
Executor
BATCH_SIZE
=
20
...
...
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
浏览文件 @
2c407ef0
...
...
@@ -15,7 +15,6 @@
import
unittest
import
paddle
import
paddle.nn
as
nn
import
numpy
as
np
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_nn_functional_hot_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,13 +14,11 @@
import
unittest
import
numpy
as
np
import
math
from
op_test
import
OpTest
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.nn.functional
as
functional
import
paddle.fluid.framework
as
framework
from
paddle.fluid.framework
import
Program
,
program_guard
...
...
python/paddle/fluid/tests/unittests/test_nn_matmul_v2_grad.py
浏览文件 @
2c407ef0
...
...
@@ -17,7 +17,6 @@ import numpy as np
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
import
gradient_checker
from
decorator_helper
import
prog_scope
...
...
python/paddle/fluid/tests/unittests/test_nn_sigmoid_op.py
浏览文件 @
2c407ef0
...
...
@@ -16,8 +16,6 @@ import unittest
import
numpy
as
np
import
paddle
import
paddle.fluid.core
as
core
from
op_test
import
OpTest
from
scipy.special
import
expit
,
erf
import
paddle
import
paddle.fluid
as
fluid
import
paddle.nn
as
nn
...
...
python/paddle/fluid/tests/unittests/test_nonzero_api.py
浏览文件 @
2c407ef0
...
...
@@ -14,7 +14,6 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
import
paddle
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
...
...
python/paddle/fluid/tests/unittests/test_normalize.py
浏览文件 @
2c407ef0
...
...
@@ -16,7 +16,6 @@ import unittest
import
paddle
import
paddle.nn.functional
as
F
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
numpy
as
np
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_number_count_op.py
浏览文件 @
2c407ef0
...
...
@@ -17,10 +17,6 @@ import numpy as np
import
unittest
import
paddle
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid.backward
import
append_backward
from
paddle.distributed.models.moe
import
utils
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_numel_op.py
浏览文件 @
2c407ef0
...
...
@@ -15,10 +15,7 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
import
functools
import
paddle
...
...
python/paddle/fluid/tests/unittests/test_one_hot_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,12 +14,10 @@
import
unittest
import
numpy
as
np
import
math
from
op_test
import
OpTest
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.framework
as
framework
from
paddle.fluid.framework
import
Program
,
program_guard
...
...
python/paddle/fluid/tests/unittests/test_one_hot_v2_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,12 +14,10 @@
import
unittest
import
numpy
as
np
import
math
from
op_test
import
OpTest
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.framework
as
framework
from
paddle.fluid.framework
import
Program
,
program_guard
,
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_ones_like.py
浏览文件 @
2c407ef0
...
...
@@ -16,7 +16,7 @@ import unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
from
paddle
import
_C_ops
,
_legacy_C_ops
from
paddle
import
_C_ops
from
paddle
import
ones_like
from
paddle.fluid
import
core
,
Program
,
program_guard
from
paddle.fluid.framework
import
convert_np_dtype_to_dtype_
...
...
python/paddle/fluid/tests/unittests/test_ones_op.py
浏览文件 @
2c407ef0
...
...
@@ -14,11 +14,8 @@
import
unittest
import
numpy
as
np
from
op_test
import
OpTest
import
paddle
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/test_onnx_export.py
浏览文件 @
2c407ef0
...
...
@@ -12,14 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
pickle
import
unittest
import
numpy
as
np
import
paddle
from
paddle.static
import
InputSpec
from
paddle.fluid.framework
import
in_dygraph_mode
,
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
class
LinearNet
(
paddle
.
nn
.
Layer
):
...
...
python/paddle/fluid/tests/unittests/test_op_function_generator.py
浏览文件 @
2c407ef0
...
...
@@ -13,13 +13,12 @@
# limitations under the License.
import
unittest
from
paddle.fluid.framework
import
default_main_program
,
Program
,
convert_np_dtype_to_dtype_
,
_non_static_mode
,
in_dygraph_mode
from
paddle.fluid.framework
import
in_dygraph_mode
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
from
paddle.fluid.dygraph.jit
import
TracedLayer
import
numpy
as
np
from
paddle
import
_
C_ops
,
_
legacy_C_ops
from
paddle
import
_legacy_C_ops
class
TestTracedLayer
(
fluid
.
dygraph
.
Layer
):
...
...
python/paddle/fluid/tests/unittests/test_outer.py
浏览文件 @
2c407ef0
...
...
@@ -18,7 +18,7 @@ import numpy as np
import
paddle
from
paddle.static
import
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
,
in_dygraph_mode
from
paddle.fluid.framework
import
_test_eager_guard
class
TestMultiplyApi
(
unittest
.
TestCase
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录