Traceback (most recent call last):


 "/content/OpenNMT-py/onmt/trainer.py", line 347, in _gradient_accumulation

trunc_size=trunc_size)


 "/content/OpenNMT-py/onmt/utils/loss.py", line 158, in __call__

loss, stats = self._compute_loss(batch, **shard)


 "/content/OpenNMT-py/onmt/utils/loss.py", line 233, in _compute_loss

scores = self.generator(bottled_output)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 92, in forward

input = module(input)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/linear.py", line 67, in forward

return F.linear(input, self.weight, self.bias)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py", line 1352, in linear

ret = torch.addmm(torch.jit._unwrap_optional(bias), input, weight.t())
RuntimeError: Expected object of backend CPU but got backend CUDA for argument #4 'mat1'

Traceback (most recent call last):

 "/usr/bin/salt-run", line 10, in <module>
salt_run()

 "/usr/lib/python2.7/site-packages/salt/scripts.py", line 90, in salt_run
client.run()

 "/usr/lib/python2.7/site-packages/salt/cli/__init__.py", line 346, in run
runner.run()

 "/usr/lib/python2.7/site-packages/salt/runner.py", line 153, in run
self.opts['fun'], self.opts['arg'], self.opts)

 "/usr/lib/python2.7/site-packages/salt/runner.py", line 85, in cmd
return self.functions[fun](*args, **kwargs)

 "/usr/lib/python2.7/site-packages/salt/runners/fileserver.py", line 21, in update
fileserver.update()

 "/usr/lib/python2.7/site-packages/salt/fileserver/__init__.py", line 138, in update
self.servers[fstr]()

 "/usr/lib/python2.7/site-packages/salt/fileserver/gitfs.py", line 192, in update
find_file

 "/usr/lib/python2.7/site-packages/salt/fileserver/__init__.py", line 69, in reap_fileserver_cache_dir
filename, _, hash_type = file_rel_path.rsplit('.', 2)ValueError: need more than 2 values to unpack