When I call the following code:
device = torch.device(“cuda:0” if torch.cuda.is_available() else “cpu”)
My output redirection doesn’t work, i.e., when I cat my .out file, there’s nothing in it. Could someone help me?