Common helper methods for flushReduceBucket implementations
| 581 | |
| 582 | // Common helper methods for flushReduceBucket implementations |
| 583 | void blockCopyEvents(at::ScalarType scalar_type) |
| 584 | { |
| 585 | for (const ReduceTask& t : reduce_tasks_.at(scalar_type)) { |
| 586 | auto copy_done_event = rs_copy_done_events_.at(t.getDSId()); |
| 587 | copy_done_event->block(rs_stream_); |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | void applyPreDivision(at::ScalarType scalar_type) |
| 592 | { |