Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
b22ceba7
MegEngine
项目概览
MegEngine 天元
/
MegEngine
1 年多 前同步成功
通知
404
Star
4705
Fork
582
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MegEngine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b22ceba7
编写于
11月 25, 2021
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs(imperative): fix code exmaple indent warnings
GitOrigin-RevId: aa533bf2964b4b40ea366329da66bd47a2ca2e52
上级
7ac693a8
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
69 addition
and
53 deletion
+69
-53
imperative/python/megengine/tools/graph_info_analyze.py
imperative/python/megengine/tools/graph_info_analyze.py
+9
-5
imperative/python/megengine/traced_module/traced_module.py
imperative/python/megengine/traced_module/traced_module.py
+28
-28
imperative/python/megengine/utils/tensorboard.py
imperative/python/megengine/utils/tensorboard.py
+32
-20
未找到文件。
imperative/python/megengine/tools/graph_info_analyze.py
浏览文件 @
b22ceba7
...
...
@@ -209,7 +209,11 @@ def main():
class to logs which can be read by python `tensorboard`.
Now `get_static_memory_alloc_info()` support this feature,it will dump a dir
which can be convert by `graph_info_analyze.py`.
Examples::
Examples:
.. code-block:: shell
graph_info_analyze.py -i <input_dir_name> -o <output_dir_name>
tensorboard --logdir <output_dir_name>
"""
...
...
imperative/python/megengine/traced_module/traced_module.py
浏览文件 @
b22ceba7
...
...
@@ -1777,7 +1777,7 @@ class ExprFilter(BaseFilter):
class
NodeFilter
(
BaseFilter
):
"""Filter on Node iterator.
This class is an iterator of :class:`
.Node` objects and multiple
This class is an iterator of :class:`
~.traced_module.Node` objects and multiple
filtering conditions and mappers can be chained.
"""
...
...
imperative/python/megengine/utils/tensorboard.py
浏览文件 @
b22ceba7
...
...
@@ -141,13 +141,18 @@ class SummaryWriterExtend(SummaryWriter):
def
add_text
(
self
,
tag
,
text_string_list
,
global_step
=
None
,
walltime
=
None
):
"""Add text data to summary.
Args:
tag (string): Data identifier
text_string_list (string list): String to save
global_step (int): Global step value to record
walltime (float): Optional override default walltime (time.time())
seconds after epoch of event
Examples::
Examples:
.. code-block:: python
# text can be divided into three levels by tag and global_step
from writer import SummaryWriterExtend
writer = SummaryWriterExtend()
...
...
@@ -171,8 +176,11 @@ class SummaryWriterExtend(SummaryWriter):
dtype
=
None
,
attributes
=
{},
):
"""Add node raw datas that can help build graph.After add all nodes, call
add_graph_by_node_raw_list() to build graph and add graph data to summary.
"""Add node raw datas that can help build graph.
After add all nodes, call ``add_graph_by_node_raw_list()`` to build
graph and add graph data to summary.
Args:
name (string): opr name.
op (string): opr class name.
...
...
@@ -180,7 +188,11 @@ class SummaryWriterExtend(SummaryWriter):
outputshape (list): output shape.
dtype (string): output data dtype.
attributes (dict): attributes info.
Examples::
Examples:
.. code-block:: python
from writer import SummaryWriterExtend
writer = SummaryWriterExtend()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录