Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
0bc97e92
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
0bc97e92
编写于
4月 27, 2021
作者:
Z
zhiboniu
提交者:
GitHub
4月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 2.0 public api in utils (#32008)
上级
c47bafc6
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
50 addition
and
37 deletion
+50
-37
python/paddle/utils/__init__.py
python/paddle/utils/__init__.py
+20
-16
python/paddle/utils/cpp_extension/__init__.py
python/paddle/utils/cpp_extension/__init__.py
+14
-12
python/paddle/utils/download.py
python/paddle/utils/download.py
+0
-2
python/paddle/utils/install_check.py
python/paddle/utils/install_check.py
+0
-2
python/paddle/utils/op_version.py
python/paddle/utils/op_version.py
+0
-2
python/paddle/utils/profiler.py
python/paddle/utils/profiler.py
+16
-3
未找到文件。
python/paddle/utils/__init__.py
浏览文件 @
0bc97e92
...
...
@@ -12,21 +12,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
.profiler
import
ProfilerOptions
from
.profiler
import
Profiler
from
.profiler
import
get_profiler
from
.deprecated
import
deprecated
from
.lazy_import
import
try_import
from
.op_version
import
OpLastCheckpointChecker
from
.install_check
import
run_check
from
..fluid.framework
import
unique_name
from
..fluid.framework
import
require_version
from
.profiler
import
ProfilerOptions
# noqa: F401
from
.profiler
import
Profiler
# noqa: F401
from
.profiler
import
get_profiler
# noqa: F401
from
.deprecated
import
deprecated
# noqa: F401
from
.lazy_import
import
try_import
# noqa: F401
from
.op_version
import
OpLastCheckpointChecker
# noqa: F401
from
.install_check
import
run_check
# noqa: F401
from
..fluid.framework
import
unique_name
# noqa: F401
from
..fluid.framework
import
require_version
# noqa: F401
from
.
import
download
from
.
import
download
# noqa: F401
from
.
import
image_util
# noqa: F401
from
.
import
cpp_extension
# noqa: F401
from
.
import
cpp_extension
__all__
=
[
'dump_config'
,
'deprecated'
,
'download'
,
'run_check'
]
#TODO: define new api under this directory
__all__
+=
[
'unique_name'
,
'require_version'
]
__all__
=
[
#noqa
'deprecated'
,
'download'
,
'run_check'
,
'unique_name'
,
'require_version'
,
'try_import'
]
python/paddle/utils/cpp_extension/__init__.py
浏览文件 @
0bc97e92
...
...
@@ -12,18 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
.cpp_extension
import
CUDAExtension
from
.cpp_extension
import
CppExtension
from
.cpp_extension
import
BuildExtension
from
.cpp_extension
import
load
,
setup
from
.cpp_extension
import
CUDAExtension
# noqa: F401
from
.cpp_extension
import
CppExtension
# noqa: F401
from
.cpp_extension
import
BuildExtension
# noqa: F401
from
.cpp_extension
import
load
# noqa: F401
from
.cpp_extension
import
setup
# noqa: F401
from
.extension_utils
import
parse_op_info
from
.extension_utils
import
get_build_directory
from
.extension_utils
import
load_op_meta_info_and_register_op
from
.extension_utils
import
parse_op_info
# noqa: F401
from
.extension_utils
import
get_build_directory
# noqa: F401
from
.extension_utils
import
load_op_meta_info_and_register_op
# noqa: F401
from
.
import
cpp_extension
from
.
import
extension_utils
__all__
=
[
'CppExtension'
,
'CUDAExtension'
,
'load'
,
'setup'
,
'get_build_directory'
__all__
=
[
#noqa
'CppExtension'
,
'CUDAExtension'
,
'load'
,
'setup'
,
'get_build_directory'
]
python/paddle/utils/download.py
浏览文件 @
0bc97e92
...
...
@@ -55,8 +55,6 @@ except:
import
logging
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
'get_weights_path_from_url'
]
WEIGHTS_HOME
=
osp
.
expanduser
(
"~/.cache/paddle/hapi/weights"
)
DOWNLOAD_RETRY_LIMIT
=
3
...
...
python/paddle/utils/install_check.py
浏览文件 @
0bc97e92
...
...
@@ -20,8 +20,6 @@ import numpy as np
import
paddle
__all__
=
[
'run_check'
]
def
_simple_network
():
"""
...
...
python/paddle/utils/op_version.py
浏览文件 @
0bc97e92
...
...
@@ -14,8 +14,6 @@
from
..fluid
import
core
__all__
=
[
'OpLastCheckpointChecker'
]
def
Singleton
(
cls
):
_instance
=
{}
...
...
python/paddle/utils/profiler.py
浏览文件 @
0bc97e92
...
...
@@ -18,9 +18,22 @@ import sys
import
warnings
from
..fluid
import
core
from
..fluid.profiler
import
*
__all__
=
[
'ProfilerOptions'
,
'Profiler'
,
'get_profiler'
]
from
..fluid.profiler
import
cuda_profiler
# noqa: F401
from
..fluid.profiler
import
start_profiler
from
..fluid.profiler
import
profiler
# noqa: F401
from
..fluid.profiler
import
stop_profiler
from
..fluid.profiler
import
reset_profiler
__all__
=
[
#noqa
'Profiler'
,
'get_profiler'
,
'ProfilerOptions'
,
'cuda_profiler'
,
'start_profiler'
,
'profiler'
,
'stop_profiler'
,
'reset_profiler'
]
class
ProfilerOptions
(
object
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录