mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-10-31 16:21:27 +08:00 
			
		
		
		
	Switch to nanobind (#839)
* mostly builds * most tests pass * fix circle build * add back buffer protocol * includes * fix for py38 * limit to cpu device * include * fix stubs * move signatures for docs * stubgen + docs fix * doc for compiled function, comments
This commit is contained in:
		| @@ -1,5 +1,4 @@ | ||||
| // Copyright © 2023 Apple Inc. | ||||
|  | ||||
| // Copyright © 2023-2024 Apple Inc. | ||||
| #include <algorithm> | ||||
| #include <cstring> | ||||
| #include <fstream> | ||||
| @@ -122,8 +121,6 @@ void save(std::shared_ptr<io::Writer> out_stream, array a) { | ||||
|   out_stream->write(magic_ver_len.str().c_str(), magic_ver_len.str().length()); | ||||
|   out_stream->write(header.str().c_str(), header.str().length()); | ||||
|   out_stream->write(a.data<char>(), a.nbytes()); | ||||
|  | ||||
|   return; | ||||
| } | ||||
|  | ||||
| /** Save array to file in .npy format */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Awni Hannun
					Awni Hannun