Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/base/data/home/apps/s~sympy-live-hrd/49.400254913747479351/sympy/sympy/solvers/inequalities.py", line 448, in solve_univariate_inequality

raise NotImplementedError('sorting of these roots is not supported')
NotImplementedError: sorting of these roots is not supported

Traceback (most recent call last):


 "translate.py", line 48, in <module>

main(opt)


 "translate.py", line 32, in main

attn_debug=opt.attn_debug


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/translate/translator.py", line 330, in translate

batch, data.src_vocabs, attn_debug


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/translate/translator.py", line 523, in translate_batch

return_attention=attn_debug or self.replace_unk)


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/translate/translator.py", line 672, in _translate_batch

batch_offset=beam._batch_offset)


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/translate/translator.py", line 561, in _decode_and_generate

decoder_in, memory_bank, memory_lengths=memory_lengths, step=step


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

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


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/decoders/decoder.py", line 213, in forward

tgt, memory_bank, memory_lengths=memory_lengths)


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/decoders/decoder.py", line 395, in _run_forward_pass

memory_lengths=memory_lengths)


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

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


 "/home/kalle/workspaces/openNMT/OpenNMT-py-master/onmt/modules/global_attention.py", line 183, in forward

align.masked_fill_(1 - mask, -float('inf'))


 "/usr/local/lib/python3.6/dist-packages/torch/tensor.py", line 325, in __rsub__

return _C._VariableFunctions.rsub(self, other)
RuntimeError: Subtraction, the `-` operator, with a bool tensor is not supported. If you are trying to invert a mask, use the `~` or `bitwise_not()` operator instead.
