| 1453 | |
| 1454 | template <typename ArrayFactory> |
| 1455 | static std::function<Result<std::shared_ptr<Array>>()> ToDeviceFactory( |
| 1456 | const std::shared_ptr<MemoryManager>& mm, ArrayFactory&& factory) { |
| 1457 | return [&]() { return ToDevice(mm, *factory()->data()); }; |
| 1458 | } |
| 1459 | |
| 1460 | static std::function<Result<std::shared_ptr<Array>>()> JSONArrayFactory( |
| 1461 | const std::shared_ptr<MemoryManager>& mm, std::shared_ptr<DataType> type, |