Returns true if the module has a schedule set.
| 296 | |
| 297 | // Returns true if the module has a schedule set. |
| 298 | bool has_schedule() const { return schedule_.has_value(); } |
| 299 | |
| 300 | // Returns the schedule of the module. CHECK fails if no schedule is set. |
| 301 | const HloSchedule& schedule() const { return *schedule_; } |