qimpy.io.fmt

fmt(tensor, **kwargs)

Standardized conversion of torch tensors and numpy arrays for logging. Keyword arguments are forwarded to numpy.array2string.

Parameters:

tensor (Tensor | ndarray) –

Return type:

str