Delete dead code in memory space assignment

PiperOrigin-RevId: 357239017
Change-Id: I0db7ea18c4580dfef833a30bbccd0bba6f71dcb9
This commit is contained in:
A. Unique TensorFlower 2021-02-12 11:58:35 -08:00 committed by TensorFlower Gardener
parent e9ce368a53
commit 048e5baef9
2 changed files with 0 additions and 12 deletions

View File

@ -254,12 +254,6 @@ float MemorySpaceAssignmentCostAnalysis::GetInstructionElapsedDueToCompute(
cost_analysis_.per_second_rate(HloCostAnalysis::kTranscendentalsKey));
}
float MemorySpaceAssignmentCostAnalysis::
GetInstructionElapsedDueToMemorySlowdown(int64 bytes) const {
return bytes /
cost_analysis_.per_second_rate(HloCostAnalysis::kBytesAccessedKey);
}
float MemorySpaceAssignmentCostAnalysis::GetInstructionElapsedDueToMemory(
const HloInstruction& instruction,
absl::optional<int64> operand_in_alternate_mem,

View File

@ -123,12 +123,6 @@ class MemorySpaceAssignmentCostAnalysis {
absl::optional<int64> operand_in_alternate_mem = absl::nullopt,
bool output_in_alternate_mem = false) const;
// Returns the elapsed time in seconds that other BufferIntervals are slowed
// down, due to the prefetching of current bytes. Assuming other
// BufferIntervals needs default memory bandwidth, and only current
// BufferInterval is prefetched.
float GetInstructionElapsedDueToMemorySlowdown(int64 bytes) const;
// Returns the estimated elapsed duration of the instruction in seconds. It
// assumes all operands and outputs of the instruction are in the default
// memory.