Solved by ptrblck in post #2 
              
              
                Yes, both approaches share the underlying memory. 
torch.as_tensor accepts a bit more that torch.from_numpy, such as list objects, and might thus have a slightly higher overhead for these checks.