num_arrays_in_memory#

ivy.num_arrays_in_memory()[source]#

Return the number of arrays which are currently alive.

Return type:

int

Returns:

ret – Number of all arrays which are alive.

Examples

>>> ivy.num_arrays_in_memory()
0
>>> x = ivy.num_arrays_in_memory()
>>> x
0
>>> y = ivy.array([0, 1, 2])
>>> x
1