Files
candle/candle-core/tests/pth_tests.rs
Roma Klapaukh 1ba11f22d6 Fix: pth files don't load on Windows (#1661)
* Don't treat zip path as OS path

* Add a test case

* Add code to generate test pth data
2024-02-06 08:50:55 +01:00

7 lines
212 B
Rust

/// Regression test for pth files not loading on Windows.
#[test]
fn test_pth() {
let tensors = candle_core::pickle::PthTensors::new("tests/test.pt").unwrap();
tensors.get("test").unwrap().unwrap();
}