Converting list to tensor

I wish that torch.tensor(nested_list_of_tensors) gave you the corresponding tensors with many dimensions that respected the original list of tensors. Anyway, I have a small code that might be helpful here: Best way to convert a list to a tensor? - #8 by Brando_Miranda