mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-10-31 16:21:27 +08:00 
			
		
		
		
	fix sequential with empty modules at end (#647)
This commit is contained in:
		| @@ -71,7 +71,7 @@ class TestBase(mlx_tests.MLXTestCase): | ||||
|  | ||||
|     def test_save_safetensors_weights(self): | ||||
|         def make_model(): | ||||
|             return nn.Sequential(nn.Linear(2, 2), nn.ReLU(), nn.Linear(2, 2)) | ||||
|             return nn.Sequential(nn.Linear(2, 2), nn.ReLU(), nn.Linear(2, 2), nn.ReLU()) | ||||
|  | ||||
|         m = make_model() | ||||
|         tdir = tempfile.TemporaryDirectory() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Awni Hannun
					Awni Hannun