Using a list comprehension is probably faster: inputs = [i for i in inputs]
However, since Pytorch tensors can virtually be used as lists would (iterating, item assignment… I think), I’m really curious about your requirements. Can you reveal more about the “upper level” or is this information too sensitive?