mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:46:46 +08:00
switch python load test to use load
This commit is contained in:
parent
dc5abdc4c4
commit
edd55388ce
@ -84,7 +84,7 @@ class TestLoad(mlx_tests.MLXTestCase):
|
|||||||
with open(save_file_mlx, "wb") as f:
|
with open(save_file_mlx, "wb") as f:
|
||||||
mx.save_safetensor(f, save_dict)
|
mx.save_safetensor(f, save_dict)
|
||||||
with open(save_file_mlx, "rb") as f:
|
with open(save_file_mlx, "rb") as f:
|
||||||
load_dict = mx.load_safetensor(f)
|
load_dict = mx.load(f)
|
||||||
|
|
||||||
self.assertTrue("test" in load_dict)
|
self.assertTrue("test" in load_dict)
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
|
Loading…
Reference in New Issue
Block a user