| 120 | class ReduceTask { |
| 121 | public: |
| 122 | ReduceTask(long ds_id, at::Tensor grad, at::Tensor send_buf) |
| 123 | : ds_id_(ds_id), grad_(std::move(grad)), send_buf_(std::move(send_buf)) |
| 124 | { |
| 125 | } |
| 126 | |
| 127 | long getDSId() const { return ds_id_; } |
| 128 | at::Tensor getSendBuf() const { return send_buf_; } |