Simple helper function to convert a NumPy array into a PyTorch tensor in order to keep code readable. Parameters ---------- data : NumPy ndarray Array to convert to tensor device : string, or None (optional) Add tensor to this device, if specified Returns
(data, device=None)
source not stored for this graph (policy: none)