deepinv.utils.TensorList#
- class deepinv.utils.TensorList(x)[source]#
Represents a list of
torch.Tensor
with 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.Tensor
or a TensorList.