Traceback (most recent call last):


 "caption.py", line 222, in <module>

seq,alphas = caption_image_beam_search(encoder, decoder, args.img, word_map, args.beam_size)


 "caption.py", line 45, in caption_image_beam_search

image = transform(img)
# (3, 256, 256)


 "C:\Anaconda3\lib\site-packages\torchvision\transforms\transforms.py", line 60, in __call__

img = t(img)


 "C:\Anaconda3\lib\site-packages\torchvision\transforms\transforms.py", line 163, in __call__

return F.normalize(tensor, self.mean, self.std, self.inplace)


 "C:\Anaconda3\lib\site-packages\torchvision\transforms\functional.py", line 208, in normalize

tensor.sub_(mean[:, None, None]).div_(std[:, None, None])
RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.FloatTensor for argument #4 'other'

Traceback (most recent call last):


 "model_run.py", line 156, in <module>

tf.app.run()


 "/home/xx/miniconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run

sys.exit(main(sys.argv[:1] + flags_passthrough))


 "model_run.py", line 150, in main

results_transfer = se.eval(transfer_tasks)


 "/home/xx/Documents/SentEval/senteval.py", line 56, in eval

self.results = {x:self.eval(x) for x in name}


 "/home/xx/Documents/SentEval/senteval.py", line 56, in <dictcomp>

self.results = {x:self.eval(x) for x in name}


 "/home/xx/Documents/SentEval/senteval.py", line 91, in eval

self.results = self.evaluation.run(self.params, self.batcher)


 "/home/xx/Documents/SentEval/trec.py", line 76, in run

devacc, testacc, _ = clf.run()


 "/home/xx/Documents/SentEval/tools/validation.py", line 159, in run

yhat = clf.predict(self.test['X'])


 "/home/xx/Documents/SentEval/tools/classifier.py", line 137, in predict

yhat = np.append(yhat, output.data.max(1)[1].squeeze(1).cpu().numpy())
RuntimeError: dimension out of range (expected to be in range of [-1, 0], but got 1)
