We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 433ba7a commit c06153dCopy full SHA for c06153d
1 file changed
arrayfire/array.py
@@ -289,4 +289,7 @@ def __nonzero__(self):
289
# return self
290
291
def print_array(a):
292
+ expr = inspect.stack()[1][-2]
293
+ if (expr is not None):
294
+ print('%s' % expr[0].split('print_array(')[1][:-2])
295
safe_call(clib.af_print_array(a.arr))
0 commit comments