Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
0e904d48
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
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看板
未验证
提交
0e904d48
编写于
4月 29, 2021
作者:
Z
zhiboniu
提交者:
GitHub
4月 29, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 2.0 public api in hapi (#32651)
上级
e60c08f7
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
19 addition
and
14 deletion
+19
-14
python/paddle/hapi/__init__.py
python/paddle/hapi/__init__.py
+9
-10
python/paddle/hapi/dynamic_flops.py
python/paddle/hapi/dynamic_flops.py
+1
-1
python/paddle/hapi/hub.py
python/paddle/hapi/hub.py
+2
-0
python/paddle/hapi/logger.py
python/paddle/hapi/logger.py
+2
-0
python/paddle/hapi/model.py
python/paddle/hapi/model.py
+1
-1
python/paddle/hapi/model_summary.py
python/paddle/hapi/model_summary.py
+1
-1
python/paddle/hapi/progressbar.py
python/paddle/hapi/progressbar.py
+1
-1
python/paddle/hapi/static_flops.py
python/paddle/hapi/static_flops.py
+2
-0
未找到文件。
python/paddle/hapi/__init__.py
浏览文件 @
0e904d48
...
...
@@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
.
import
logger
from
.
import
callbacks
from
.
import
model_summary
from
.
import
hub
from
.
import
logger
# noqa: F401
from
.
import
callbacks
# noqa: F401
from
.
import
hub
# noqa: F401
from
.
import
progressbar
# noqa: F401
from
.
import
static_flops
# noqa: F401
from
.
import
model
from
.model
import
*
from
.model_summary
import
summary
from
.dynamic_flops
import
flops
from
.model
import
Model
# noqa: F401
from
.model_summary
import
summary
# noqa: F401
from
.dynamic_flops
import
flops
# noqa: F401
logger
.
setup_logger
()
__all__
=
[
'callbacks'
]
+
model
.
__all__
+
[
'summary'
]
__all__
=
model
.
__all__
+
[
'flops'
]
__all__
=
[]
python/paddle/hapi/dynamic_flops.py
浏览文件 @
0e904d48
...
...
@@ -18,7 +18,7 @@ import paddle.nn as nn
import
numpy
as
np
from
.static_flops
import
static_flops
,
Table
__all__
=
[
'flops'
]
__all__
=
[]
def
flops
(
net
,
input_size
,
custom_ops
=
None
,
print_detail
=
False
):
...
...
python/paddle/hapi/hub.py
浏览文件 @
0e904d48
...
...
@@ -19,6 +19,8 @@ import shutil
import
zipfile
from
paddle.utils.download
import
get_path_from_url
__all__
=
[]
DEFAULT_CACHE_DIR
=
'~/.cache'
VAR_DEPENDENCY
=
'dependencies'
MODULE_HUBCONF
=
'hubconf.py'
...
...
python/paddle/hapi/logger.py
浏览文件 @
0e904d48
...
...
@@ -22,6 +22,8 @@ import logging
from
paddle.fluid.dygraph.parallel
import
ParallelEnv
__all__
=
[]
def
setup_logger
(
output
=
None
,
name
=
"hapi"
,
log_level
=
logging
.
INFO
):
"""
...
...
python/paddle/hapi/model.py
浏览文件 @
0e904d48
...
...
@@ -54,7 +54,7 @@ from paddle.distributed.fleet.base import role_maker
from
.callbacks
import
config_callbacks
,
EarlyStopping
from
.model_summary
import
summary
__all__
=
[
'Model'
,
]
__all__
=
[]
_parallel_context_initialized
=
False
...
...
python/paddle/hapi/model_summary.py
浏览文件 @
0e904d48
...
...
@@ -22,7 +22,7 @@ from paddle.static import InputSpec
from
collections
import
OrderedDict
__all__
=
[
'summary'
]
__all__
=
[]
def
summary
(
net
,
input_size
,
dtypes
=
None
):
...
...
python/paddle/hapi/progressbar.py
浏览文件 @
0e904d48
...
...
@@ -22,7 +22,7 @@ import time
import
numpy
as
np
from
collections
import
namedtuple
__all__
=
[
'ProgressBar'
]
__all__
=
[]
class
ProgressBar
(
object
):
...
...
python/paddle/hapi/static_flops.py
浏览文件 @
0e904d48
...
...
@@ -18,6 +18,8 @@ import paddle
from
collections
import
OrderedDict
from
paddle.static
import
Program
,
program_guard
,
Variable
__all__
=
[]
class
VarWrapper
(
object
):
def
__init__
(
self
,
var
,
graph
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录