MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / ReduceTask

Method ReduceTask

csrc/includes/deepcompile.h:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120class ReduceTask {
121public:
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_; }

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected