Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
300b1009
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看板
未验证
提交
300b1009
编写于
10月 10, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
10月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] remove unused import in unittests/test_[u-z] (#46706)
上级
dd3d45de
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
7 addition
and
30 deletion
+7
-30
python/paddle/fluid/tests/unittests/test_unbind_op.py
python/paddle/fluid/tests/unittests/test_unbind_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_unfold_op.py
python/paddle/fluid/tests/unittests/test_unfold_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_uniform_random_bf16_op.py
...ddle/fluid/tests/unittests/test_uniform_random_bf16_op.py
+1
-2
python/paddle/fluid/tests/unittests/test_uniform_random_op.py
...on/paddle/fluid/tests/unittests/test_uniform_random_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_unique.py
python/paddle/fluid/tests/unittests/test_unique.py
+0
-1
python/paddle/fluid/tests/unittests/test_unique_consecutive_op.py
...addle/fluid/tests/unittests/test_unique_consecutive_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_unique_with_counts.py
...n/paddle/fluid/tests/unittests/test_unique_with_counts.py
+0
-1
python/paddle/fluid/tests/unittests/test_unpool1d_op.py
python/paddle/fluid/tests/unittests/test_unpool1d_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_unpool_op.py
python/paddle/fluid/tests/unittests/test_unpool_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_var_info.py
python/paddle/fluid/tests/unittests/test_var_info.py
+0
-2
python/paddle/fluid/tests/unittests/test_variable.py
python/paddle/fluid/tests/unittests/test_variable.py
+1
-2
python/paddle/fluid/tests/unittests/test_view_op_reuse_allocation.py
...le/fluid/tests/unittests/test_view_op_reuse_allocation.py
+1
-2
python/paddle/fluid/tests/unittests/test_where_op.py
python/paddle/fluid/tests/unittests/test_where_op.py
+1
-4
python/paddle/fluid/tests/unittests/test_while_loop_op.py
python/paddle/fluid/tests/unittests/test_while_loop_op.py
+0
-2
python/paddle/fluid/tests/unittests/test_while_op.py
python/paddle/fluid/tests/unittests/test_while_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_yolo_box_op.py
python/paddle/fluid/tests/unittests/test_yolo_box_op.py
+0
-1
python/paddle/fluid/tests/unittests/test_zeros_like_op.py
python/paddle/fluid/tests/unittests/test_zeros_like_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_zeros_op.py
python/paddle/fluid/tests/unittests/test_zeros_op.py
+1
-4
未找到文件。
python/paddle/fluid/tests/unittests/test_unbind_op.py
浏览文件 @
300b1009
...
@@ -18,7 +18,7 @@ from op_test import OpTest, convert_float_to_uint16
...
@@ -18,7 +18,7 @@ from op_test import OpTest, convert_float_to_uint16
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.tensor
as
tensor
import
paddle.tensor
as
tensor
from
paddle.fluid
import
compiler
,
Program
,
program_guard
,
core
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_unfold_op.py
浏览文件 @
300b1009
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
math
import
numpy
as
np
import
numpy
as
np
import
unittest
import
unittest
from
op_test
import
OpTest
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/test_uniform_random_bf16_op.py
浏览文件 @
300b1009
...
@@ -14,12 +14,11 @@
...
@@ -14,12 +14,11 @@
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
,
convert_uint16_to_float
,
convert_float_to_uint16
from
op_test
import
OpTest
,
convert_uint16_to_float
import
paddle
import
paddle
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid.tests.unittests.test_uniform_random_op
import
output_hist
,
output_hist_diag
from
paddle.fluid.tests.unittests.test_uniform_random_op
import
output_hist
,
output_hist_diag
...
...
python/paddle/fluid/tests/unittests/test_uniform_random_op.py
浏览文件 @
300b1009
...
@@ -12,9 +12,7 @@
...
@@ -12,9 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
sys
import
os
import
os
import
subprocess
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/test_unique.py
浏览文件 @
300b1009
...
@@ -18,7 +18,6 @@ from op_test import OpTest
...
@@ -18,7 +18,6 @@ from op_test import OpTest
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_unique_consecutive_op.py
浏览文件 @
300b1009
...
@@ -19,7 +19,6 @@ import paddle.fluid.core as core
...
@@ -19,7 +19,6 @@ import paddle.fluid.core as core
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.framework
as
framework
def
reference_unique_consecutive
(
X
,
return_inverse
=
False
,
return_counts
=
False
):
def
reference_unique_consecutive
(
X
,
return_inverse
=
False
,
return_counts
=
False
):
...
...
python/paddle/fluid/tests/unittests/test_unique_with_counts.py
浏览文件 @
300b1009
...
@@ -17,7 +17,6 @@ import numpy as np
...
@@ -17,7 +17,6 @@ import numpy as np
from
op_test
import
OpTest
from
op_test
import
OpTest
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
class
TestUniqueWithCountsOp
(
OpTest
):
class
TestUniqueWithCountsOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/test_unpool1d_op.py
浏览文件 @
300b1009
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
import
paddle
import
paddle
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
...
...
python/paddle/fluid/tests/unittests/test_unpool_op.py
浏览文件 @
300b1009
...
@@ -288,7 +288,6 @@ class TestUnpoolOpAPI_dy3(unittest.TestCase):
...
@@ -288,7 +288,6 @@ class TestUnpoolOpAPI_dy3(unittest.TestCase):
def
test_case
(
self
):
def
test_case
(
self
):
import
paddle
import
paddle
import
paddle.nn.functional
as
F
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
numpy
as
np
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/test_var_info.py
浏览文件 @
300b1009
...
@@ -18,8 +18,6 @@ including create, config, run, etc.
...
@@ -18,8 +18,6 @@ including create, config, run, etc.
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
numpy
as
np
import
numpy
as
np
import
os
import
shutil
import
unittest
import
unittest
...
...
python/paddle/fluid/tests/unittests/test_variable.py
浏览文件 @
300b1009
...
@@ -16,10 +16,9 @@ import unittest
...
@@ -16,10 +16,9 @@ import unittest
from
functools
import
reduce
from
functools
import
reduce
import
paddle
import
paddle
from
paddle.fluid.framework
import
default_main_program
,
Program
,
convert_np_dtype_to_dtype_
,
_non_static_mode
from
paddle.fluid.framework
import
Program
,
convert_np_dtype_to_dtype_
,
default_main_program
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
import
numpy
as
np
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/test_view_op_reuse_allocation.py
浏览文件 @
300b1009
...
@@ -16,9 +16,8 @@ import unittest
...
@@ -16,9 +16,8 @@ import unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
import
paddle
import
paddle
from
paddle.fluid.framework
import
_test_eager_guard
,
in_dygraph_mode
from
paddle.fluid.framework
import
_test_eager_guard
# NOTE(pangyoki): Tensor View Strategy.
# NOTE(pangyoki): Tensor View Strategy.
...
...
python/paddle/fluid/tests/unittests/test_where_op.py
浏览文件 @
300b1009
...
@@ -16,11 +16,8 @@ import unittest
...
@@ -16,11 +16,8 @@ import unittest
import
numpy
as
np
import
numpy
as
np
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.core
as
core
from
op_test
import
OpTest
from
op_test
import
OpTest
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid.op
import
Operator
from
paddle.fluid.backward
import
append_backward
from
paddle.fluid.backward
import
append_backward
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_while_loop_op.py
浏览文件 @
300b1009
...
@@ -19,8 +19,6 @@ import paddle
...
@@ -19,8 +19,6 @@ import paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
import
paddle.fluid.layers
as
layers
import
paddle.fluid.layers
as
layers
import
paddle.fluid.framework
as
framework
from
paddle.fluid.executor
import
Executor
from
paddle.fluid.framework
import
Program
,
program_guard
from
paddle.fluid.framework
import
Program
,
program_guard
from
paddle.fluid.backward
import
append_backward
from
paddle.fluid.backward
import
append_backward
...
...
python/paddle/fluid/tests/unittests/test_while_op.py
浏览文件 @
300b1009
...
@@ -20,7 +20,6 @@ import paddle.fluid.core as core
...
@@ -20,7 +20,6 @@ import paddle.fluid.core as core
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle.fluid.backward
import
append_backward
from
paddle.fluid.backward
import
append_backward
import
numpy
import
numpy
from
paddle.fluid
import
compiler
,
Program
,
program_guard
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/test_yolo_box_op.py
浏览文件 @
300b1009
...
@@ -16,7 +16,6 @@ import unittest
...
@@ -16,7 +16,6 @@ import unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
from
op_test
import
OpTest
import
paddle
import
paddle
from
paddle.fluid
import
core
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
...
...
python/paddle/fluid/tests/unittests/test_zeros_like_op.py
浏览文件 @
300b1009
...
@@ -17,7 +17,7 @@ import numpy as np
...
@@ -17,7 +17,7 @@ import numpy as np
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle
import
zeros_like
from
paddle
import
zeros_like
from
paddle
import
_C_ops
,
_legacy_C_ops
from
paddle
import
_C_ops
from
paddle.fluid
import
core
,
Program
,
program_guard
from
paddle.fluid
import
core
,
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
convert_np_dtype_to_dtype_
from
paddle.fluid.framework
import
convert_np_dtype_to_dtype_
...
...
python/paddle/fluid/tests/unittests/test_zeros_op.py
浏览文件 @
300b1009
...
@@ -14,13 +14,10 @@
...
@@ -14,13 +14,10 @@
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
from
op_test
import
OpTest
import
paddle
import
paddle
import
paddle.compat
as
cpt
import
paddle.compat
as
cpt
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle.fluid
import
compiler
,
Program
,
program_guard
from
paddle.fluid
import
Program
,
program_guard
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.framework
import
_test_eager_guard
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录