Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
9f83d3c6
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看板
未验证
提交
9f83d3c6
编写于
10月 10, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
10月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] remove unused imports in fluid/tests/custom_* (#46717)
上级
fd8d92ca
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
5 addition
and
24 deletion
+5
-24
python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py
...ddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py
+0
-1
python/paddle/fluid/tests/custom_kernel/test_custom_kernel_dot.py
...addle/fluid/tests/custom_kernel/test_custom_kernel_dot.py
+0
-1
python/paddle/fluid/tests/custom_op/custom_relu_setup.py
python/paddle/fluid/tests/custom_op/custom_relu_setup.py
+0
-2
python/paddle/fluid/tests/custom_op/test_check_abi.py
python/paddle/fluid/tests/custom_op/test_check_abi.py
+0
-1
python/paddle/fluid/tests/custom_op/test_custom_relu_op_jit.py
...n/paddle/fluid/tests/custom_op/test_custom_relu_op_jit.py
+1
-1
python/paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py
...paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py
+0
-2
python/paddle/fluid/tests/custom_op/test_custom_tanh_double_grad.py
...dle/fluid/tests/custom_op/test_custom_tanh_double_grad.py
+0
-1
python/paddle/fluid/tests/custom_op/test_multi_out_jit.py
python/paddle/fluid/tests/custom_op/test_multi_out_jit.py
+0
-1
python/paddle/fluid/tests/custom_op/utils.py
python/paddle/fluid/tests/custom_op/utils.py
+0
-1
python/paddle/fluid/tests/custom_runtime/custom_device_multi_process_collective.py
.../custom_runtime/custom_device_multi_process_collective.py
+0
-1
python/paddle/fluid/tests/custom_runtime/process_group_xccl.py
...n/paddle/fluid/tests/custom_runtime/process_group_xccl.py
+0
-3
python/paddle/fluid/tests/custom_runtime/test_collective_process_group_xccl.py
...ests/custom_runtime/test_collective_process_group_xccl.py
+4
-5
python/paddle/fluid/tests/custom_runtime/test_custom_cpu_plugin.py
...ddle/fluid/tests/custom_runtime/test_custom_cpu_plugin.py
+0
-1
python/paddle/fluid/tests/custom_runtime/test_custom_cpu_profiler_plugin.py
...d/tests/custom_runtime/test_custom_cpu_profiler_plugin.py
+0
-2
python/paddle/fluid/tests/custom_runtime/test_custom_cpu_to_static.py
...e/fluid/tests/custom_runtime/test_custom_cpu_to_static.py
+0
-1
未找到文件。
python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py
浏览文件 @
9f83d3c6
...
...
@@ -15,7 +15,6 @@
import
os
import
site
from
paddle.fluid
import
core
from
distutils.sysconfig
import
get_python_lib
from
distutils.core
import
setup
,
Extension
from
setuptools.command.build_ext
import
build_ext
...
...
python/paddle/fluid/tests/custom_kernel/test_custom_kernel_dot.py
浏览文件 @
9f83d3c6
...
...
@@ -14,7 +14,6 @@
import
os
import
sys
import
site
import
unittest
import
numpy
as
np
...
...
python/paddle/fluid/tests/custom_op/custom_relu_setup.py
浏览文件 @
9f83d3c6
...
...
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
from
utils
import
paddle_includes
,
extra_compile_args
,
IS_MAC
from
paddle.utils.cpp_extension
import
CUDAExtension
,
setup
,
CppExtension
...
...
python/paddle/fluid/tests/custom_op/test_check_abi.py
浏览文件 @
9f83d3c6
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
unittest
import
paddle
import
os
import
warnings
...
...
python/paddle/fluid/tests/custom_op/test_custom_relu_op_jit.py
浏览文件 @
9f83d3c6
...
...
@@ -18,7 +18,7 @@ import paddle
import
numpy
as
np
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
,
IS_WINDOWS
,
IS_MAC
from
utils
import
IS_MAC
,
extra_cc_args
,
extra_nvcc_args
,
paddle_includes
from
test_custom_relu_op_setup
import
custom_relu_dynamic
,
custom_relu_static
from
paddle.fluid.framework
import
_test_eager_guard
# Because Windows don't use docker, the shared lib already exists in the
...
...
python/paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py
浏览文件 @
9f83d3c6
...
...
@@ -18,8 +18,6 @@ import site
import
unittest
import
paddle
import
paddle.static
as
static
import
tempfile
import
subprocess
import
numpy
as
np
from
paddle.vision.transforms
import
Compose
,
Normalize
from
paddle.utils.cpp_extension.extension_utils
import
run_cmd
...
...
python/paddle/fluid/tests/custom_op/test_custom_tanh_double_grad.py
浏览文件 @
9f83d3c6
...
...
@@ -18,7 +18,6 @@ import numpy as np
import
paddle
import
paddle.fluid
as
fluid
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
...
...
python/paddle/fluid/tests/custom_op/test_multi_out_jit.py
浏览文件 @
9f83d3c6
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
os
import
subprocess
import
unittest
import
numpy
as
np
...
...
python/paddle/fluid/tests/custom_op/utils.py
浏览文件 @
9f83d3c6
...
...
@@ -14,7 +14,6 @@
import
os
import
sys
import
six
from
distutils.sysconfig
import
get_python_lib
from
paddle.utils.cpp_extension.extension_utils
import
IS_WINDOWS
...
...
python/paddle/fluid/tests/custom_runtime/custom_device_multi_process_collective.py
浏览文件 @
9f83d3c6
...
...
@@ -14,7 +14,6 @@
import
os
import
sys
import
time
def
train
(
prefix
):
...
...
python/paddle/fluid/tests/custom_runtime/process_group_xccl.py
浏览文件 @
9f83d3c6
...
...
@@ -15,12 +15,9 @@
import
unittest
import
random
import
numpy
as
np
import
os
import
shutil
import
paddle
from
paddle.fluid
import
core
from
datetime
import
timedelta
import
paddle.fluid.core
as
core
from
paddle.fluid.framework
import
_test_eager_guard
from
paddle.fluid.dygraph.parallel
import
ParallelEnv
...
...
python/paddle/fluid/tests/custom_runtime/test_collective_process_group_xccl.py
浏览文件 @
9f83d3c6
...
...
@@ -14,7 +14,6 @@
import
unittest
import
os
import
sys
import
copy
import
subprocess
import
time
...
...
@@ -27,7 +26,7 @@ def start_local_trainers(cluster,
training_script_args
,
eager_mode
=
True
,
log_dir
=
None
):
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
# noqa: F401
current_env
=
copy
.
copy
(
os
.
environ
.
copy
())
#paddle broadcast ncclUniqueId use socket, and
...
...
@@ -83,7 +82,7 @@ def start_local_trainers(cluster,
def
get_cluster_from_args
(
selected_gpus
):
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
# noqa: F401
cluster_node_ips
=
'127.0.0.1'
node_ip
=
'127.0.0.1'
...
...
@@ -107,7 +106,7 @@ def get_cluster_from_args(selected_gpus):
class
TestMultipleCustomCPU
(
unittest
.
TestCase
):
def
run_mnist_2custom_cpu
(
self
,
target_file_name
,
eager_mode
=
True
):
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
# noqa: F401
selected_devices
=
[
0
,
1
]
cluster
=
None
...
...
@@ -160,7 +159,7 @@ class TestProcessGroup(TestMultipleCustomCPU):
self
.
temp_dir
.
cleanup
()
def
test_process_group_xccl
(
self
):
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
from
paddle.distributed.utils.launch_utils
import
find_free_ports
,
watch_local_trainers
,
get_cluster
,
TrainerProc
# noqa: F401
self
.
run_mnist_2custom_cpu
(
'process_group_xccl.py'
)
...
...
python/paddle/fluid/tests/custom_runtime/test_custom_cpu_plugin.py
浏览文件 @
9f83d3c6
...
...
@@ -14,7 +14,6 @@
import
os
import
sys
import
site
import
unittest
import
numpy
as
np
import
tempfile
...
...
python/paddle/fluid/tests/custom_runtime/test_custom_cpu_profiler_plugin.py
浏览文件 @
9f83d3c6
...
...
@@ -14,9 +14,7 @@
import
os
import
sys
import
site
import
unittest
import
numpy
as
np
import
tempfile
...
...
python/paddle/fluid/tests/custom_runtime/test_custom_cpu_to_static.py
浏览文件 @
9f83d3c6
...
...
@@ -24,7 +24,6 @@ BATCH_SIZE = 1024
def
train_func_base
(
epoch_id
,
train_loader
,
model
,
cost
,
optimizer
):
import
paddle
total_step
=
len
(
train_loader
)
epoch_start
=
time
.
time
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录