| 719 | : size_function_(size_function), algorithm_(algorithm) {} |
| 720 | |
| 721 | StatusOr<bool> HloMemoryScheduler::Run(HloModule* module) { |
| 722 | TF_ASSIGN_OR_RETURN(HloSchedule schedule, |
| 723 | ScheduleModule(module, size_function_, algorithm_)); |
| 724 | TF_RETURN_IF_ERROR(module->set_schedule(std::move(schedule))); |
| 725 | return true; |
| 726 | } |
| 727 | |
| 728 | StatusOr<bool> HloTrivialScheduler::Run(HloModule* module) { |
| 729 | HloSchedule schedule(module); |
nothing calls this directly
no test coverage detected