According to my understanding, when a is ndarray, torch.from_numpy(a) is same as torch.as_tensor(a), and they don’t copy the data just share the same memory, so I think they are same speed when applied, but I test that from_numpy faster than as_tensor. Could someone explaine for me? Thanks a lot first