]> khamidou — GitHub mirrors - safetensors.git/commit
Respects torch.device(0) new behavior without breaking backward compatibility (#509)
authorNicolas Patry <patry.nicolas@protonmail.com>
Thu, 1 Aug 2024 15:07:06 +0000 (17:07 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2024 15:07:06 +0000 (17:07 +0200)
commit74c4e167352bb57358a946ba953bcf99a026e7fd
tree9bcbe740bcd3a7ed3e42124ae089a6dfc7e0d5d3
parent8d2126156a24d9b4045968ff88b83ed6803d7113
Respects torch.device(0) new behavior without breaking backward compatibility (#509)

* Respects torch.device(0) new behavior without breaking backward
compatibilty.

* Fixing anonymous device type, apparently number string is not ok.
bindings/python/src/lib.rs
bindings/python/tests/test_pt_comparison.py