to()

Concept

A tensor method in PyTorch used to move a tensor to a specified device (CPU or GPU).

Mentioned in 1 video