Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210130133
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210130133
Commits
4e92cc02
Unverified
Commit
4e92cc02
authored
6 years ago
by
Jinhui Yuan
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
order_in_chain to order_in_graph (#946)
parent
a61af5dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
oneflow/core/graph/task_node.cpp
+2
-2
2 additions, 2 deletions
oneflow/core/graph/task_node.cpp
oneflow/core/graph/task_node.h
+2
-2
2 additions, 2 deletions
oneflow/core/graph/task_node.h
oneflow/core/job/task.proto
+1
-1
1 addition, 1 deletion
oneflow/core/job/task.proto
with
5 additions
and
5 deletions
oneflow/core/graph/task_node.cpp
+
2
−
2
View file @
4e92cc02
...
...
@@ -18,7 +18,7 @@ TaskNode::TaskNode()
task_id_
(
-
1
),
area_id_
(
-
1
),
chain_id_
(
-
1
),
order_in_
chain
_
(
-
1
)
{}
order_in_
graph
_
(
-
1
)
{}
std
::
shared_ptr
<
RegstDesc
>
TaskNode
::
GetProducedRegst
(
const
std
::
string
&
name
)
{
auto
produced_regsts_it
=
produced_regsts_
.
find
(
name
);
...
...
@@ -96,7 +96,7 @@ void TaskNode::ToProto(TaskProto* task_proto) {
task_proto
->
set_task_id
(
task_id_
);
task_proto
->
mutable_task_set_info
()
->
set_area_id
(
area_id_
);
task_proto
->
mutable_task_set_info
()
->
set_chain_id
(
chain_id_
);
task_proto
->
mutable_task_set_info
()
->
set_order_in_
chain
(
order_in_
chain
_
);
task_proto
->
mutable_task_set_info
()
->
set_order_in_
graph
(
order_in_
graph
_
);
exec_gph_
.
ToExecSequence
(
IsBackwardTaskType
(
GetTaskType
())
==
false
,
parallel_ctx
(),
task_proto
->
mutable_exec_sequence
());
auto
produced_regst_proto
=
task_proto
->
mutable_produced_regst_desc
();
...
...
This diff is collapsed.
Click to expand it.
oneflow/core/graph/task_node.h
+
2
−
2
View file @
4e92cc02
...
...
@@ -26,7 +26,7 @@ class TaskNode : public Node<TaskNode, TaskEdge> {
int64_t
task_id
()
const
{
return
task_id_
;
}
int64_t
area_id
()
const
{
return
area_id_
;
}
int64_t
chain_id
()
const
{
return
chain_id_
;
}
int64_t
order_in_
chain
()
const
{
return
order_in_
chain
_
;
}
int64_t
order_in_
graph
()
const
{
return
order_in_
graph
_
;
}
const
ExecGraph
&
exec_gph
()
const
{
return
exec_gph_
;
}
std
::
shared_ptr
<
RegstDesc
>
GetProducedRegst
(
const
std
::
string
&
name
);
const
std
::
list
<
std
::
weak_ptr
<
RegstDesc
>>&
GetConsumedRegst
(
const
std
::
string
&
name
);
...
...
@@ -95,7 +95,7 @@ class TaskNode : public Node<TaskNode, TaskEdge> {
int64_t
task_id_
;
int64_t
area_id_
;
int64_t
chain_id_
;
int64_t
order_in_
chain
_
;
int64_t
order_in_
graph
_
;
ExecGraph
exec_gph_
;
HashMap
<
std
::
string
,
std
::
shared_ptr
<
RegstDesc
>>
produced_regsts_
;
...
...
This diff is collapsed.
Click to expand it.
oneflow/core/job/task.proto
+
1
−
1
View file @
4e92cc02
...
...
@@ -35,7 +35,7 @@ message RegstDescIdSet {
message
TaskSetInfo
{
required
int64
area_id
=
1
;
required
int64
chain_id
=
4
;
required
int64
order_in_
chain
=
5
;
required
int64
order_in_
graph
=
5
;
}
message
TaskProto
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment