We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e023a commit 1e09d86Copy full SHA for 1e09d86
arrayfire/array.py
@@ -496,7 +496,9 @@ def to_list(self, row_major=False):
496
return ctype_to_lists(ct_array, len(shape) - 1, shape)
497
498
def __repr__(self):
499
- safe_call(backend.get().af_print_array(self.arr))
+ # Having __repr__ directly print things is a bad idea
500
+ # Placeholder for when af_array_to_string is available
501
+ # safe_call(backend.get().af_array_to_string...
502
return '%s of dimensions %s' % (type(self), self.dims())
503
504
def __array__(self):
0 commit comments