torch.from_numpy

Software / App

A PyTorch function to create a tensor from a NumPy array, sharing the same memory.

Mentioned in 1 video