MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Run

Method Run

tensorflow/compiler/xla/service/heap_simulator.cc:93–108  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

91
92/*static*/
93StatusOr<HeapSimulator::Result> HeapSimulator::Run(
94 std::unique_ptr<HeapAlgorithm> algorithm, const HloModule& module,
95 const HloSchedule& schedule, const HloAliasAnalysis& alias_analysis,
96 const BufferValue::SizeFunction& size_fn, const Options& options) {
97 HeapSimulator heap(std::move(algorithm), size_fn, options, &schedule);
98 const HloComputation* entry_computation = module.entry_computation();
99 const HloInstructionSequence& instruction_sequence =
100 schedule.sequence(entry_computation);
101 TF_ASSIGN_OR_RETURN(
102 std::unique_ptr<HloLiveRange> hlo_live_range,
103 HloLiveRange::Run(schedule, alias_analysis, entry_computation));
104 TF_RETURN_IF_ERROR(heap.RunComputation(*entry_computation,
105 instruction_sequence, alias_analysis,
106 hlo_live_range.get()));
107 return heap.Finish();
108}
109
110/*static*/
111StatusOr<HeapSimulator::Result> HeapSimulator::Run(

Callers

nothing calls this directly

Calls 9

entry_computationMethod · 0.80
sequenceMethod · 0.80
set_sequenceMethod · 0.80
TF_ASSIGN_OR_RETURNFunction · 0.70
RunFunction · 0.50
RunComputationMethod · 0.45
getMethod · 0.45
FinishMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected