Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
f8830754
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看板
未验证
提交
f8830754
编写于
10月 10, 2022
作者:
S
Shuangchi He
提交者:
GitHub
10月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] remove unused imports in unittests/fft_ps_rnn. (#46707)
上级
05da9bf4
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
8 addition
and
32 deletion
+8
-32
python/paddle/fluid/tests/unittests/fft/spectral_op_np.py
python/paddle/fluid/tests/unittests/fft/spectral_op_np.py
+1
-1
python/paddle/fluid/tests/unittests/fft/test_fft.py
python/paddle/fluid/tests/unittests/fft/test_fft.py
+0
-2
python/paddle/fluid/tests/unittests/fft/test_fft_with_static_graph.py
...e/fluid/tests/unittests/fft/test_fft_with_static_graph.py
+0
-2
python/paddle/fluid/tests/unittests/fft/test_spectral_op.py
python/paddle/fluid/tests/unittests/fft/test_spectral_op.py
+1
-8
python/paddle/fluid/tests/unittests/ps/fl_ps_trainer.py
python/paddle/fluid/tests/unittests/ps/fl_ps_trainer.py
+0
-3
python/paddle/fluid/tests/unittests/ps/ps_dnn_trainer.py
python/paddle/fluid/tests/unittests/ps/ps_dnn_trainer.py
+0
-2
python/paddle/fluid/tests/unittests/ps/test_fl_ps.py
python/paddle/fluid/tests/unittests/ps/test_fl_ps.py
+3
-3
python/paddle/fluid/tests/unittests/ps/test_the_one_ps.py
python/paddle/fluid/tests/unittests/ps/test_the_one_ps.py
+3
-10
python/paddle/fluid/tests/unittests/rnn/convert.py
python/paddle/fluid/tests/unittests/rnn/convert.py
+0
-1
未找到文件。
python/paddle/fluid/tests/unittests/fft/spectral_op_np.py
浏览文件 @
f8830754
...
...
@@ -16,7 +16,7 @@ import enum
import
numpy
as
np
from
functools
import
partial
from
numpy
import
asarray
from
numpy.fft._pocketfft
import
_
raw_fft
,
_raw_fftnd
,
_get_forward_norm
,
_get_backward_norm
,
_cook_nd_args
from
numpy.fft._pocketfft
import
_
cook_nd_args
,
_raw_fft
,
_raw_fftnd
class
NormMode
(
enum
.
Enum
):
...
...
python/paddle/fluid/tests/unittests/fft/test_fft.py
浏览文件 @
f8830754
...
...
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
contextlib
import
re
import
sys
import
unittest
...
...
python/paddle/fluid/tests/unittests/fft/test_fft_with_static_graph.py
浏览文件 @
f8830754
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
import
contextlib
import
re
import
sys
import
unittest
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/fft/test_spectral_op.py
浏览文件 @
f8830754
...
...
@@ -12,20 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
unittest
import
numpy
as
np
import
paddle
import
re
import
sys
from
spectral_op_np
import
fft_c2c
,
fft_r2c
,
fft_c2r
,
fft_c2c_backward
,
fft_r2c_backward
,
fft_c2r_backward
import
paddle.fluid.core
as
core
import
paddle.fluid.dygraph
as
dg
import
paddle.static
as
static
from
numpy.random
import
random
as
rand
from
paddle.fluid
import
Program
,
program_guard
from
paddle
import
_C_ops
,
_legacy_C_ops
from
paddle
import
_C_ops
sys
.
path
.
append
(
"../"
)
from
op_test
import
OpTest
...
...
python/paddle/fluid/tests/unittests/ps/fl_ps_trainer.py
浏览文件 @
f8830754
...
...
@@ -13,11 +13,8 @@
# limitations under the License.
import
os
import
unittest
import
numpy
as
np
import
time
import
paddle
from
paddle.distributed.ps.utils.public
import
ps_log_root_dir
,
debug_program
import
paddle.distributed.fleet
as
fleet
import
paddle.fluid
as
fluid
...
...
python/paddle/fluid/tests/unittests/ps/ps_dnn_trainer.py
浏览文件 @
f8830754
...
...
@@ -16,12 +16,10 @@ import paddle.distributed.fleet.base.role_maker as role_maker
from
paddle.distributed.ps.utils.ps_program_builder
import
*
import
paddle.distributed.fleet
as
fleet
import
argparse
import
time
import
sys
import
yaml
,
six
,
copy
import
paddle
import
os
import
warnings
import
ast
import
numpy
as
np
import
struct
...
...
python/paddle/fluid/tests/unittests/ps/test_fl_ps.py
浏览文件 @
f8830754
...
...
@@ -15,15 +15,14 @@
# limitations under the License.
import
unittest
import
shlex
from
paddle.fluid.tests.unittests.distributed_passes.dist_pass_test_base
import
prepare_python_path_and_return_module
,
remove_path_if_exists
import
shlex
# noqa: F401
from
paddle.fluid.tests.unittests.distributed_passes.dist_pass_test_base
import
remove_path_if_exists
# noqa: F401
import
os
class
FlPsTest
(
unittest
.
TestCase
):
def
test_launch_fl_ps
(
self
):
pass
'''
cmd = [
'python', '-m', 'paddle.distributed.fleet.launch', '--log_dir',
...
...
@@ -36,6 +35,7 @@ class FlPsTest(unittest.TestCase):
prepare_python_path_and_return_module(__file__)
exitcode = os.system(' '.join(cmd))
'''
pass
if
__name__
==
'__main__'
:
...
...
python/paddle/fluid/tests/unittests/ps/test_the_one_ps.py
浏览文件 @
f8830754
...
...
@@ -12,19 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
unittest
import
numpy
as
np
import
paddle
import
paddle.fluid
as
fluid
import
paddle
from
paddle.fluid.tests.unittests.distributed_passes.ps_pass_test_base
import
*
from
paddle.distributed.ps.utils.public
import
logger
,
ps_log_root_dir
from
ps_dnn_trainer
import
DnnTrainer
import
paddle.distributed.fleet.proto.the_one_ps_pb2
as
ps_pb2
from
google.protobuf
import
text_format
import
paddle.distributed.fleet.proto.the_one_ps_pb2
as
ps_pb2
# noqa: F401
from
google.protobuf
import
text_format
# noqa: F401
class
TestTheOnePs
(
PsPassTestBase
):
...
...
@@ -36,7 +29,6 @@ class TestTheOnePs(PsPassTestBase):
pass
def
check
(
self
,
file1
,
file2
):
pass
'''
f = open(file1, "rb")
ps_desc_1 = ps_pb2.PSParameter()
...
...
@@ -56,6 +48,7 @@ class TestTheOnePs(PsPassTestBase):
else:
return False
'''
pass
def
test_ps_cpu_async
(
self
):
self
.
init
()
...
...
python/paddle/fluid/tests/unittests/rnn/convert.py
浏览文件 @
f8830754
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
paddle
import
numpy
as
np
def
convert_params_for_cell
(
np_cell
,
paddle_cell
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录