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
solved!
When placing a class instance on the GPU, only properties and functions prefixed with self in init() will be placed on the GPU, and no other functions will be affected
'''
exponent = torch.exp(-.5 * torch.sum((x - mu) * (x - mu) / var, 2, keepdim=True))
RuntimeError: expected device cpu and dtype Float but got device cuda:0 and dtype Float
'''
How could this program working rightly with GPU?
The text was updated successfully, but these errors were encountered: