This commit is contained in:
Awni Hannun
2025-11-03 12:48:22 -08:00
parent 742033fefe
commit cc6df9fc8a
15 changed files with 39 additions and 39 deletions

View File

@@ -227,7 +227,7 @@ array load(std::shared_ptr<io::Reader> in_stream, StreamOrDevice s) {
throw std::runtime_error("[load] Failed to open " + in_stream->label());
}
auto stream = to_stream(s, cu::is_available() ? Device::gpu : Device::cpu);
auto stream = cu::is_available() ? to_stream(s) : to_stream(s, Device::cpu);
////////////////////////////////////////////////////////
// Read header and prepare array details