deepinv.utils.TensorList#
- class deepinv.utils.TensorList(x)[source]#
Represents a list of
torch.Tensorwith different shapes. It allows to sum, flatten, append, etc. lists of tensors seamlessly, in a similar fashion totorch.Tensor.- Parameters:
x – a list of
torch.Tensor, a singletorch.Tensoror a TensorList.