You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "D:\AICode\ST-SSL\model\aug.py", line 53, in aug_topology drop_prob = torch.softmax(sim_mx[edge_mask], dim=0) RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
#3
Open
XiangMeng666 opened this issue
Dec 1, 2023
· 1 comment
I encountered the following problem when running the program, I debugging found that the sim_mx is in cpu, edge_mask is in gpu, and then I change the edge_mask to CPU, and the program can run successfully, i want to ensure whether changing this place is right?
my change is : edge_mask = (input_graph > 0).tril(diagonal=-1).cpu()
The text was updated successfully, but these errors were encountered:
I encountered the following problem when running the program, I debugging found that the sim_mx is in cpu, edge_mask is in gpu, and then I change the edge_mask to CPU, and the program can run successfully, i want to ensure whether changing this place is right?
my change is : edge_mask = (input_graph > 0).tril(diagonal=-1).cpu()
The text was updated successfully, but these errors were encountered: