raise TypeError(fRedisAI doesnt support tensors of type {tensor.dtype}) code example
Example: torch device
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')