Ran into this myself today. I guess id like it to create an empty tensor, but maybe that’s problematic. Will just do an if else I guess. Anyone got a prettier solution than
if list_of_tensors:
    t = torch.stack(list_of_tensors)
else
    t = torch.tensor([])