Skip to content
Snippets Groups Projects
Commit a83f4872 authored by Neta Zmora's avatar Neta Zmora
Browse files

language model: remove dead code

parent ce60fc14
No related branches found
No related tags found
No related merge requests found
...@@ -36,9 +36,6 @@ class RNNModel(nn.Module): ...@@ -36,9 +36,6 @@ class RNNModel(nn.Module):
self.nhid = nhid self.nhid = nhid
self.nlayers = nlayers self.nlayers = nlayers
# Neta
#self.rnn.weight_hh_l0.register_hook(lambda grad: grad.clamp(min=-100, max=100))
def init_weights(self): def init_weights(self):
initrange = 0.1 initrange = 0.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment