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
I tried to run DBN, but the implementation cause gpu memory leaks in my computer whose torch version is 0.4.1. I fix this by changing the following lines of codes self.running_mean = (1. - self.momentum) * self.running_mean + self.momentum * mean self.running_projection = (1. - self.momentum) * self.running_projection + self.momentum * wm
to self.running_mean = (1. - self.momentum) * self.running_mean + self.momentum * mean.data self.running_projection = (1. - self.momentum) * self.running_projection + self.momentum * wm.data
The text was updated successfully, but these errors were encountered:
Tangshitao
changed the title
DBN implementation may cause gpu memory leakage.
DBN implementation may cause gpu memory leaks.
Jun 27, 2019
I tried to run DBN, but the implementation cause gpu memory leaks in my computer whose torch version is 0.4.1. I fix this by changing the following lines of codes
self.running_mean = (1. - self.momentum) * self.running_mean + self.momentum * mean
self.running_projection = (1. - self.momentum) * self.running_projection + self.momentum * wm
to
self.running_mean = (1. - self.momentum) * self.running_mean + self.momentum * mean.data
self.running_projection = (1. - self.momentum) * self.running_projection + self.momentum * wm.data
The text was updated successfully, but these errors were encountered: