Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
0746bffb
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0746bffb
编写于
7月 14, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
7月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
!3056 Alarm modification
Merge pull request !3056 from shenwei41/sw_master
上级
530d46eb
bda46f48
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
18 addition
and
5 deletion
+18
-5
mindspore/ccsrc/dataset/engine/opt/pre/removal_nodes.h
mindspore/ccsrc/dataset/engine/opt/pre/removal_nodes.h
+4
-3
mindspore/ccsrc/dataset/engine/opt/pre/removal_pass.h
mindspore/ccsrc/dataset/engine/opt/pre/removal_pass.h
+3
-0
mindspore/ccsrc/dataset/engine/perf/connector_throughput.h
mindspore/ccsrc/dataset/engine/perf/connector_throughput.h
+5
-2
mindspore/ccsrc/dataset/util/slice.h
mindspore/ccsrc/dataset/util/slice.h
+6
-0
未找到文件。
mindspore/ccsrc/dataset/engine/opt/pre/removal_nodes.h
浏览文件 @
0746bffb
...
...
@@ -19,12 +19,10 @@
#include <memory>
#include "dataset/engine/opt/pass.h"
#include "dataset/engine/opt/pre/removal_pass.h"
namespace
mindspore
{
namespace
dataset
{
class
RemovalPass
;
/// \class RemovalNodes removal_nodes.h
/// \brief This is a NodePass who's job is to identify which nodes should be removed.
/// It works in conjunction with the removal_pass.
...
...
@@ -46,6 +44,9 @@ class RemovalNodes : public NodePass {
/// \return Status The error code return
Status
RunOnNode
(
std
::
shared_ptr
<
CacheOp
>
node
,
bool
*
modified
)
override
;
/// \brief Destructor
~
RemovalNodes
()
=
default
;
/// \brief Perform ShuffleOp removal check
/// \param[in] node The node being visited
/// \param[inout] modified Indicator if the node was changed at all
...
...
mindspore/ccsrc/dataset/engine/opt/pre/removal_pass.h
浏览文件 @
0746bffb
...
...
@@ -34,6 +34,9 @@ class RemovalPass : public TreePass {
/// \brief Constructor
RemovalPass
();
/// \brief Destructor
~
RemovalPass
()
=
default
;
/// \brief Runs a removal_nodes pass first to find out which nodes to remove, then removes them.
/// \param[inout] tree The tree to operate on.
/// \param[inout] Indicate of the tree was modified.
...
...
mindspore/ccsrc/dataset/engine/perf/connector_throughput.h
浏览文件 @
0746bffb
...
...
@@ -26,12 +26,11 @@
#include "dataset/engine/perf/perf_data.h"
#include "dataset/engine/perf/cyclic_array.h"
#include "dataset/engine/datasetops/dataset_op.h"
#include "dataset/engine/execution_tree.h"
using
json
=
nlohmann
::
json
;
namespace
mindspore
{
namespace
dataset
{
class
ExecutionTree
;
// Connector throughput samples the output connector size of each op in the pipeline.
// For the description of the data structure see perf_buffer.h
// It support JSON serialization for external usage.
...
...
@@ -52,6 +51,10 @@ class ConnectorThroughput : public Sampling {
timestamps_
.
AddSample
(
std
::
vector
<
TimePoint
>
(
1
));
out_buffer_count_table_
.
AddSample
(
std
::
vector
<
int64_t
>
(
n_nodes_
));
}
/// \brief Destructor
~
ConnectorThroughput
()
=
default
;
// Driver function for connector size sampling.
// This function samples the connector size of every nodes within the ExecutionTree
Status
Sample
()
override
;
...
...
mindspore/ccsrc/dataset/util/slice.h
浏览文件 @
0746bffb
...
...
@@ -31,6 +31,10 @@ class ReadableSlice {
public:
ReadableSlice
()
:
ptr_
(
nullptr
),
sz_
(
0
)
{}
ReadableSlice
(
const
void
*
ptr
,
size_t
sz
)
:
ptr_
(
ptr
),
sz_
(
sz
)
{}
/// \brief Destructor
~
ReadableSlice
()
=
default
;
ReadableSlice
(
const
ReadableSlice
&
src
,
off64_t
offset
,
size_t
len
)
{
ptr_
=
static_cast
<
const
char
*>
(
src
.
GetPointer
())
+
offset
;
sz_
=
len
;
...
...
@@ -89,6 +93,8 @@ class WritableSlice : public ReadableSlice {
WritableSlice
(
const
WritableSlice
&
src
,
off64_t
offset
,
size_t
len
);
WritableSlice
(
const
WritableSlice
&
src
,
off64_t
offset
);
WritableSlice
(
const
WritableSlice
&
lhs
)
:
ReadableSlice
(
lhs
)
{
mutable_data_
=
lhs
.
mutable_data_
;
}
/// \brief Destructor
~
WritableSlice
()
=
default
;
WritableSlice
&
operator
=
(
const
WritableSlice
&
lhs
)
{
if
(
this
!=
&
lhs
)
{
mutable_data_
=
lhs
.
mutable_data_
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录