Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
f6039929
P
Paddle
项目概览
机器未来
/
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看板
未验证
提交
f6039929
编写于
9月 29, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
9月 29, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][F401] remove unused import in unittests/{asp,autograd,interpreter} (#46376)
上级
ccab0e2a
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
7 addition
and
43 deletion
+7
-43
python/paddle/fluid/tests/unittests/asp/asp_pruning_base.py
python/paddle/fluid/tests/unittests/asp/asp_pruning_base.py
+0
-1
python/paddle/fluid/tests/unittests/asp/test_asp_optimize_dynamic.py
...le/fluid/tests/unittests/asp/test_asp_optimize_dynamic.py
+0
-1
python/paddle/fluid/tests/unittests/asp/test_asp_optimize_static.py
...dle/fluid/tests/unittests/asp/test_asp_optimize_static.py
+0
-1
python/paddle/fluid/tests/unittests/asp/test_asp_pruning_static.py
...ddle/fluid/tests/unittests/asp/test_asp_pruning_static.py
+0
-1
python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_dynamic.py
.../fluid/tests/unittests/asp/test_fleet_with_asp_dynamic.py
+0
-2
python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_sharding.py
...fluid/tests/unittests/asp/test_fleet_with_asp_sharding.py
+0
-2
python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_static.py
...e/fluid/tests/unittests/asp/test_fleet_with_asp_static.py
+0
-2
python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_dynamic.py
...ts/unittests/autograd/test_autograd_functional_dynamic.py
+2
-6
python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_prim.py
...tests/unittests/autograd/test_autograd_functional_prim.py
+0
-1
python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_static.py
...sts/unittests/autograd/test_autograd_functional_static.py
+0
-2
python/paddle/fluid/tests/unittests/autograd/test_jvp_and_transpose.py
.../fluid/tests/unittests/autograd/test_jvp_and_transpose.py
+1
-1
python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py
...n/paddle/fluid/tests/unittests/autograd/test_orig2prim.py
+1
-2
python/paddle/fluid/tests/unittests/autograd/test_prim2orig.py
...n/paddle/fluid/tests/unittests/autograd/test_prim2orig.py
+1
-1
python/paddle/fluid/tests/unittests/autograd/test_primops.py
python/paddle/fluid/tests/unittests/autograd/test_primops.py
+1
-2
python/paddle/fluid/tests/unittests/autograd/test_transform.py
...n/paddle/fluid/tests/unittests/autograd/test_transform.py
+0
-1
python/paddle/fluid/tests/unittests/autograd/utils.py
python/paddle/fluid/tests/unittests/autograd/utils.py
+0
-5
python/paddle/fluid/tests/unittests/interpreter/test_standalone_controlflow.py
...ests/unittests/interpreter/test_standalone_controlflow.py
+0
-4
python/paddle/fluid/tests/unittests/interpreter/test_standalone_multiply_write.py
...s/unittests/interpreter/test_standalone_multiply_write.py
+1
-8
未找到文件。
python/paddle/fluid/tests/unittests/asp/asp_pruning_base.py
浏览文件 @
f6039929
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
import
unittest
import
unittest
import
threading
,
time
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
...
...
python/paddle/fluid/tests/unittests/asp/test_asp_optimize_dynamic.py
浏览文件 @
f6039929
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
import
unittest
import
unittest
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
import
numpy
as
np
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/asp/test_asp_optimize_static.py
浏览文件 @
f6039929
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
import
unittest
import
unittest
import
threading
,
time
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
...
...
python/paddle/fluid/tests/unittests/asp/test_asp_pruning_static.py
浏览文件 @
f6039929
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
# limitations under the License.
# limitations under the License.
import
unittest
import
unittest
import
threading
,
time
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
...
...
python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_dynamic.py
浏览文件 @
f6039929
...
@@ -14,10 +14,8 @@
...
@@ -14,10 +14,8 @@
# limitations under the License.
# limitations under the License.
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed.fleet.base.role_maker
as
role_maker
import
unittest
import
unittest
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
paddle.fluid.core
as
core
import
os
import
os
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
...
...
python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_sharding.py
浏览文件 @
f6039929
...
@@ -14,11 +14,9 @@
...
@@ -14,11 +14,9 @@
# limitations under the License.
# limitations under the License.
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed.fleet.base.role_maker
as
role_maker
import
unittest
import
unittest
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
os
import
os
from
paddle.static
import
sparsity
from
paddle.static
import
sparsity
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
...
...
python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_static.py
浏览文件 @
f6039929
...
@@ -14,11 +14,9 @@
...
@@ -14,11 +14,9 @@
# limitations under the License.
# limitations under the License.
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed.fleet.base.role_maker
as
role_maker
import
unittest
import
unittest
import
paddle
import
paddle
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.core
as
core
import
os
import
os
from
paddle.static
import
sparsity
from
paddle.static
import
sparsity
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
from
paddle.fluid.contrib.sparsity.asp
import
ASPHelper
...
...
python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_dynamic.py
浏览文件 @
f6039929
...
@@ -19,17 +19,13 @@ import unittest
...
@@ -19,17 +19,13 @@ 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.compat
as
cpt
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
from
paddle.incubate.autograd.utils
import
as_tensors
from
paddle.incubate.autograd.utils
import
as_tensors
from
paddle.fluid.framework
import
_test_eager_guard
,
_in_legacy_dygraph
,
_in_eager_without_dygraph_check
from
paddle.fluid.framework
import
_test_eager_guard
import
config
import
config
import
utils
import
utils
from
utils
import
(
_compute_numerical_batch_hessian
,
_compute_numerical_hessian
,
from
utils
import
matmul
,
mul
,
nested
,
o2
,
reduce
,
reduce_dim
_compute_numerical_vhp
,
_compute_numerical_jacobian
,
_compute_numerical_batch_jacobian
)
from
utils
import
matmul
,
mul
,
nested
,
o2
,
pow
,
reduce
,
reduce_dim
,
unuse
def
make_v
(
f
,
inputs
):
def
make_v
(
f
,
inputs
):
...
...
python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_prim.py
浏览文件 @
f6039929
...
@@ -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
typing
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
...
...
python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_static.py
浏览文件 @
f6039929
...
@@ -21,8 +21,6 @@ import paddle.fluid as fluid
...
@@ -21,8 +21,6 @@ import paddle.fluid as fluid
import
config
import
config
import
utils
import
utils
from
utils
import
(
_compute_numerical_batch_jacobian
,
_compute_numerical_jacobian
)
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/autograd/test_jvp_and_transpose.py
浏览文件 @
f6039929
...
@@ -17,7 +17,7 @@ import unittest
...
@@ -17,7 +17,7 @@ import unittest
import
paddle
import
paddle
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.layers.utils
import
flatten
from
paddle.fluid.layers.utils
import
flatten
from
paddle.incubate.autograd.primrules
import
_
orig2prim
,
_prim2orig
,
_
jvp
,
_transpose
from
paddle.incubate.autograd.primrules
import
_jvp
,
_transpose
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py
浏览文件 @
f6039929
...
@@ -17,8 +17,7 @@ import unittest
...
@@ -17,8 +17,7 @@ import unittest
import
paddle
import
paddle
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.layers.utils
import
flatten
from
paddle.fluid.layers.utils
import
flatten
from
paddle.incubate.autograd.primrules
import
_orig2prim
,
_prim2orig
,
_jvp
,
_transpose
from
paddle.incubate.autograd.primrules
import
_orig2prim
import
paddle.fluid.core
as
core
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/autograd/test_prim2orig.py
浏览文件 @
f6039929
...
@@ -17,7 +17,7 @@ import unittest
...
@@ -17,7 +17,7 @@ import unittest
import
paddle
import
paddle
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.layer_helper
import
LayerHelper
from
paddle.fluid.layers.utils
import
flatten
from
paddle.fluid.layers.utils
import
flatten
from
paddle.incubate.autograd.primrules
import
_
orig2prim
,
_prim2orig
,
_jvp
,
_transpose
from
paddle.incubate.autograd.primrules
import
_
prim2orig
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/tests/unittests/autograd/test_primops.py
浏览文件 @
f6039929
...
@@ -17,8 +17,7 @@ import uuid
...
@@ -17,8 +17,7 @@ import uuid
import
numpy
as
np
import
numpy
as
np
import
paddle
import
paddle
from
numpy.random
import
randint
,
randn
from
numpy.random
import
randint
,
randn
from
paddle.incubate.autograd
import
primops
,
primx
from
paddle.incubate.autograd
import
primops
from
paddle.incubate.autograd
import
utils
as
prim_utils
import
config
import
config
import
utils
import
utils
...
...
python/paddle/fluid/tests/unittests/autograd/test_transform.py
浏览文件 @
f6039929
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# limitations under the License.
# limitations under the License.
import
unittest
import
unittest
import
numpy
as
np
import
paddle
import
paddle
from
paddle.incubate.autograd.primx
import
Transform
,
orig2prim
,
prim2orig
from
paddle.incubate.autograd.primx
import
Transform
,
orig2prim
,
prim2orig
...
...
python/paddle/fluid/tests/unittests/autograd/utils.py
浏览文件 @
f6039929
...
@@ -15,11 +15,6 @@
...
@@ -15,11 +15,6 @@
import
typing
import
typing
import
enum
import
enum
import
sys
import
sys
import
re
import
inspect
import
functools
import
contextlib
import
collections
import
numpy
as
np
import
numpy
as
np
import
paddle
import
paddle
from
paddle.incubate.autograd.utils
import
as_tensors
from
paddle.incubate.autograd.utils
import
as_tensors
...
...
python/paddle/fluid/tests/unittests/interpreter/test_standalone_controlflow.py
浏览文件 @
f6039929
...
@@ -12,13 +12,9 @@
...
@@ -12,13 +12,9 @@
# 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
os
import
sys
import
unittest
import
unittest
import
paddle
import
paddle
from
paddle.fluid
import
core
,
framework
from
paddle.fluid
import
core
,
framework
from
paddle.fluid.core
import
StandaloneExecutor
import
paddle.fluid
as
fluid
from
paddle.fluid.framework
import
Program
,
program_guard
from
paddle.fluid.framework
import
Program
,
program_guard
import
paddle.fluid.layers
as
layers
import
paddle.fluid.layers
as
layers
...
...
python/paddle/fluid/tests/unittests/interpreter/test_standalone_multiply_write.py
浏览文件 @
f6039929
...
@@ -12,18 +12,11 @@
...
@@ -12,18 +12,11 @@
# 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
os
import
sys
import
unittest
import
unittest
import
paddle
import
paddle
from
paddle.fluid
import
core
from
paddle.fluid.framework
import
Program
from
paddle.fluid.core
import
StandaloneExecutor
import
paddle.fluid
as
fluid
from
paddle.fluid.framework
import
Program
,
program_guard
import
paddle.fluid.layers
as
layers
from
test_standalone_controlflow
import
TestCompatibility
from
test_standalone_controlflow
import
TestCompatibility
import
numpy
as
np
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录