Add printoptions (#3333)

This commit is contained in:
Christophe Prat
2026-04-02 07:24:48 +02:00
committed by GitHub
parent 80a1c206f9
commit befe42d303
9 changed files with 174 additions and 13 deletions
+1 -3
View File
@@ -12,6 +12,7 @@
#include <nanobind/typing.h>
#include "mlx/backend/metal/metal.h"
#include "mlx/utils.h"
#include "python/src/buffer.h"
#include "python/src/convert.h"
#include "python/src/indexing.h"
@@ -97,9 +98,6 @@ class ArrayPythonIterator {
};
void init_array(nb::module_& m) {
// Set Python print formatting options
mx::get_global_formatter().capitalize_bool = true;
// Types
nb::class_<mx::Dtype>(
m,