mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Update pre-commit hooks (#984)
This commit is contained in:
@@ -63,8 +63,7 @@ void save(std::shared_ptr<io::Writer> out_stream, array a) {
|
||||
std::string fortran_order = a.flags().col_contiguous ? "True" : "False";
|
||||
std::ostringstream header;
|
||||
header << "{'descr': '" << dtype_to_array_protocol(a.dtype()) << "',"
|
||||
<< " 'fortran_order': " << fortran_order << ","
|
||||
<< " 'shape': (";
|
||||
<< " 'fortran_order': " << fortran_order << "," << " 'shape': (";
|
||||
for (auto i : a.shape()) {
|
||||
header << i << ", ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user