print_all_ivy_arrays_on_dev#
- ivy.print_all_ivy_arrays_on_dev(*, device=None, attr_only=True)[source]#
Print the shape and dtype for all ivy arrays which are currently alive on the specified device.
- Parameters:
device (
Optional
[Union
[Device
,NativeDevice
]]) – The device on which to print the arrays (default:None
)attr_only (
bool
) – Whether or not to only print the shape and dtype attributes of the array (default:True
)
Examples
>>> x = ivy.array([[1,0,2], [3,2,1]]) >>> y = ivy.dev(x) >>> ivy.print_all_ivy_arrays_on_dev(y) ((3,), 'int32') ((3,), 'int32')
>>> x = ivy.array([[1,0,2], [3,2,1]]) >>> y = ivy.dev(x) >>> ivy.print_all_ivy_arrays_on_dev(y, attr_only = False) [1,0,2] [3,2,1]
- Return type:
None