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