Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Oneflow-Inc
oneflow
提交
1056c01b
O
oneflow
项目概览
Oneflow-Inc
/
oneflow
上一次同步 2 年多
通知
13
Star
2733
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oneflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1056c01b
编写于
5月 31, 2017
作者:
W
willzhang4a58
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make actor_msg in c++
上级
15efdc67
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
42 addition
and
11 deletion
+42
-11
oneflow/actor/actor.h
oneflow/actor/actor.h
+1
-1
oneflow/actor/actor_message.cpp
oneflow/actor/actor_message.cpp
+9
-0
oneflow/actor/actor_message.h
oneflow/actor/actor_message.h
+31
-0
oneflow/actor/actor_message.proto
oneflow/actor/actor_message.proto
+0
-7
oneflow/actor/actor_msg_bus.h
oneflow/actor/actor_msg_bus.h
+1
-1
oneflow/register/register.h
oneflow/register/register.h
+0
-2
未找到文件。
oneflow/actor/actor.h
浏览文件 @
1056c01b
...
...
@@ -4,7 +4,7 @@
#include "common/util.h"
#include "kernel/kernel.h"
#include "common/task.pb.h"
#include "actor/actor_message.
pb.
h"
#include "actor/actor_message.h"
#include "register/register.h"
namespace
oneflow
{
...
...
oneflow/actor/actor_message.cpp
0 → 100644
浏览文件 @
1056c01b
#include "actor/actor_message.h"
namespace
oneflow
{
ActorMsg
::
ActorMsg
()
{
TODO
();
}
}
// namespace oneflow
oneflow/actor/actor_message.h
0 → 100644
浏览文件 @
1056c01b
#ifndef ONEFLOW_ACTOR_ACTOR_MESSAGE_H_
#define ONEFLOW_ACTOR_ACTOR_MESSAGE_H_
#include "common/util.h"
#include "register/register.h"
namespace
oneflow
{
class
ActorMsg
final
{
public:
// OF_DISALLOW_COPY_AND_MOVE(ActorMsg);
ActorMsg
();
~
ActorMsg
()
=
default
;
// Getters
uint64_t
dst_actor_id
()
const
{
return
dst_actor_id_
;
}
Regst
*
regst
()
const
{
return
regst_
;
}
// Setters
void
set_dst_actor_id
(
uint64_t
val
)
{
dst_actor_id_
=
val
;
}
void
set_regst
(
Regst
*
val
)
{
regst_
=
val
;
}
private:
uint64_t
dst_actor_id_
;
Regst
*
regst_
;
};
}
// namespace oneflow
#endif // ONEFLOW_ACTOR_ACTOR_MESSAGE_H_
oneflow/actor/actor_message.proto
已删除
100644 → 0
浏览文件 @
15efdc67
syntax
=
"proto3"
;
package
oneflow
;
message
ActorMsg
{
uint64
dst_actor_id
=
1
;
uint64
register_id
=
2
;
}
oneflow/actor/actor_msg_bus.h
浏览文件 @
1056c01b
...
...
@@ -3,7 +3,7 @@
#include <stdint.h>
#include "common/util.h"
#include "actor/actor_message.
pb.
h"
#include "actor/actor_message.h"
namespace
oneflow
{
...
...
oneflow/register/register.h
浏览文件 @
1056c01b
...
...
@@ -2,8 +2,6 @@
#define ONEFLOW_REGISTER_REGISTER_H_
#include "register/blob.h"
#include "actor/actor_message.pb.h"
#include "actor/actor_msg_bus.h"
#include "common/util.h"
#include "register/runtime_register_desc.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录