get_all_arrays_in_memory#

ivy.get_all_arrays_in_memory()[source]#

Get all arrays which are currently alive.

Return type:

List[Union[Array, NativeArray]]

Returns:

ret – All arrays which are alive.

Examples

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