Traceback (most recent call last):


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

main()


 "/content/drive/My Drive/NMT/OpenNMT-py/onmt/bin/translate.py", line 48, in main

translate(opt)


 "/content/drive/My Drive/NMT/OpenNMT-py/onmt/bin/translate.py", line 32, in translate

align_debug=opt.align_debug


 "/content/drive/My Drive/NMT/OpenNMT-py/onmt/translate/translator.py", line 362, in translate

batch, data.src_vocabs, attn_debug


 "/content/drive/My Drive/NMT/OpenNMT-py/onmt/translate/translator.py", line 551, in translate_batch

decode_strategy)


 "/content/drive/My Drive/NMT/OpenNMT-py/onmt/translate/translator.py", line 683, in _translate_batch_with_strategy

decode_strategy.advance(log_probs, attn)


 "/content/drive/My Drive/NMT/OpenNMT-py/onmt/translate/beam_search.py", line 212, in advance

torch.div(self.topk_ids, vocab_size, out=self._batch_index)
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.

Traceback (most recent call last):


 "examples/triplet_loss.py", line 232, in <module>

main(parser.parse_args())


 "examples/triplet_loss.py", line 151, in main

trainer.train(epoch, train_loader, optimizer)


 "/home/bxpan/.local/lib/python3.5/site-packages/open_reid-0.2.0-py3.5.egg/reid/trainers.py", line 33, in train


 "/home/bxpan/.local/lib/python3.5/site-packages/open_reid-0.2.0-py3.5.egg/reid/trainers.py", line 83, in _forward


 "/home/bxpan/.local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 491, in __call__

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


 "/home/bxpan/.local/lib/python3.5/site-packages/open_reid-0.2.0-py3.5.egg/reid/loss/triplet.py", line 26, in forward
RuntimeError: zero-dimensional tensor (at position 0) cannot be concatenated
