| 49 | }; |
| 50 | |
| 51 | class DeviceIndexResolver { |
| 52 | public: |
| 53 | std::vector<int> operator()(int device_index) const { |
| 54 | return {device_index}; |
| 55 | } |
| 56 | |
| 57 | std::vector<int> operator()(const std::vector<int>& device_index) const { |
| 58 | return device_index; |
| 59 | } |
| 60 | }; |
| 61 | |
| 62 | template <typename T> |
| 63 | class AsyncResult { |