Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tensorflow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
What's new
5
Snippets
Groups
Projects
gitlab-org
build
omnibus-mirror
tensorflow
Commits
4d5b27dc
Commit
4d5b27dc
authored
3 years ago
by
Chris Jones
Committed by
TensorFlower Gardener
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug with live range end position.
PiperOrigin-RevId: 430063715
parent
c0fdc718
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tensorflow/compiler/xla/service/hlo_live_range.cc
+4
-2
4 additions, 2 deletions
tensorflow/compiler/xla/service/hlo_live_range.cc
with
4 additions
and
2 deletions
tensorflow/compiler/xla/service/hlo_live_range.cc
+
4
−
2
View file @
4d5b27dc
...
...
@@ -173,10 +173,12 @@ void HloLiveRange::CalculateBufferStartEndMap() {
HloPosition
end_position
;
int64_t
max_end_time
=
0
;
for
(
const
HloPosition
&
position
:
value
->
positions
())
{
if
(
instruction_schedule_
[
position
.
instruction
]
>=
max_end_time
)
{
max_end_time
=
instruction_schedule_
[
value
->
instruction
()];
int64_t
position_time
=
instruction_schedule_
[
position
.
instruction
];
if
(
position_time
>=
max_end_time
)
{
max_end_time
=
position_time
;
end_position
=
position
;
}
const
HloComputation
*
position_comp
=
position
.
instruction
->
parent
();
// If this instruction lives out, the live range of the instruction
// should be extended to the end of the computation.
...
...
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