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
]], default:None
) – The device on which to print the arraysattr_only (
bool
, default:True
) – Whether or not to only print the shape and dtype attributes of the array
- Return type:
None
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]