| 430 | void CheckCPU() const; |
| 431 | |
| 432 | void SetMemoryManager(std::shared_ptr<MemoryManager> mm) { |
| 433 | memory_manager_ = std::move(mm); |
| 434 | is_cpu_ = memory_manager_->is_cpu(); |
| 435 | device_type_ = memory_manager_->device()->device_type(); |
| 436 | } |
| 437 | }; |
| 438 | |
| 439 | /// \defgroup buffer-slicing-functions Functions for slicing buffers |