get_all_ivy_arrays_on_dev#
- ivy.get_all_ivy_arrays_on_dev(device, /)[source]#
Get all ivy arrays which are currently alive on the specified device.
- Parameters:
device (
Union
[Device
,NativeDevice
]) – The device handle from which to get the arrays- Return type:
- Returns:
ret – Container with the arrays found for the specified device [identity, array]
Examples
>>> x = ivy.array([1,0,2]) >>> y = ivy.dev(x) >>> z = ivy.get_all_ivy_arrays_on_dev(y) >>> print(z) {139740789224448:ivy.array([1,0,2])},