SSGC
SSGC copied to clipboard
fix the different device
add .item() on validation acc and loss
solve the Runtime error below:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
add .item() on validation acc and loss
solve the Runtime error below:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
Thank you very much for your contribution! I need to review it after UAI 2021 rebuttal period. Sorry for that.