Closed arunpatro closed 1 year ago
This works if the device = 'cuda'
Isn't that weird?
PyTorch does not implement the array interface for CPU arrays.
You need to do a round trip to Numpy:
logits = np.array(logits)
logits = torch.as_tensor(logits)
When I run this:
Output:
I am unable to extract the logits:
Gives: