LanguageModel(to_gpu(m))

hi, I am having trouble to get a learner from get_model function.

learner= md.get_model(opt_fn, em_sz, nh, nl,
dropouti=drops[0], dropout=drops[1], wdrop=drops[2], dropoute=drops[3], dropouth=drops[4])

learner.metrics = [accuracy]
learner.freeze_to(-1)

I get below error:

TypeError Traceback (most recent call last)
in
1 learner= md.get_model(opt_fn, em_sz, nh, nl,
----> 2 dropouti=drops[0], dropout=drops[1], wdrop=drops[2], dropoute=drops[3], dropouth=drops[4])
3
4 learner.metrics = [accuracy]
5 learner.freeze_to(-1)

in get_model(self, opt_fn, emb_sz, n_hid, n_layers, **kwargs)
6 def get_model(self, opt_fn, emb_sz, n_hid, n_layers, **kwargs):
7 m = get_language_model(self.n_tok, emb_sz, n_hid, n_layers, self.pad_idx, **kwargs)
----> 8 model = LanguageModel(to_gpu(m))
9 return RNN_Learner(self, model, opt_fn=opt_fn)

in to_gpu(x, *args, **kwargs)
2 def to_gpu(x, *args, **kwargs):
3 ‘’‘puts pytorch variable to gpu, if cuda is available and USE_GPU is set to true. ‘’’
----> 4 return x.cuda(*args, **kwargs) if USE_GPU else x

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in cuda(self, device)
258 Module: self
259 “”"
–> 260 return self._apply(lambda t: t.cuda(device))
261
262 def cpu(self):

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in _apply(self, fn)
185 def _apply(self, fn):
186 for module in self.children():
–> 187 module._apply(fn)
188
189 for param in self._parameters.values():

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in _apply(self, fn)
185 def _apply(self, fn):
186 for module in self.children():
–> 187 module._apply(fn)
188
189 for param in self._parameters.values():

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in _apply(self, fn)
185 def _apply(self, fn):
186 for module in self.children():
–> 187 module._apply(fn)
188
189 for param in self._parameters.values():

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in _apply(self, fn)
185 def _apply(self, fn):
186 for module in self.children():
–> 187 module._apply(fn)
188
189 for param in self._parameters.values():

/opt/conda/lib/python3.6/site-packages/torch/nn/modules/rnn.py in _apply(self, fn)
115 def _apply(self, fn):
116 ret = super(RNNBase, self)._apply(fn)
–> 117 self.flatten_parameters()
118 return ret
119

TypeError: noop() missing 1 required positional argument: ‘x’

Can someone help me, please?

Thank you