osc.utils.print_arrays

print_arrays(x)[source]

Print array/tensor info (name, shape, dtype).

The argument can be one of the following:

  • a single array/tensor (no name),

  • a list of variable names from the calling context,

  • or a list of arrays/tensors (no names),

  • or a mapping from names to arrays/tensors.

Parameters

x (Union[str, ndarray, Tensor, Sequence[Union[str, ndarray, Tensor]], Mapping[str, Union[ndarray, Tensor]]]) – what to print