| 5 | namespace kp { |
| 6 | |
| 7 | OpTensorSyncDevice::OpTensorSyncDevice( |
| 8 | const std::vector<std::shared_ptr<Tensor>>& tensors) |
| 9 | { |
| 10 | KP_LOG_DEBUG("Kompute OpTensorSyncDevice constructor with params"); |
| 11 | |
| 12 | if (tensors.size() < 1) { |
| 13 | throw std::runtime_error( |
| 14 | "Kompute OpTensorSyncDevice called with less than 1 tensor"); |
| 15 | } |
| 16 | |
| 17 | this->mTensors = tensors; |
| 18 | } |
| 19 | |
| 20 | OpTensorSyncDevice::~OpTensorSyncDevice() |
| 21 | { |