Traceback (most recent call last):


 "/home/jzheng/PycharmProjects/ImageCaptioning_Skyler/scripts/prepro_feats_sky.py", line 119, in <module>

main(params)


 "/home/jzheng/PycharmProjects/ImageCaptioning_Skyler/scripts/prepro_feats_sky.py", line 89, in main

(2048,), dtype="float")


 "/usr/local/lib/python2.7/dist-packages/h5py/_hl/group.py", line 119, in create_dataset

self[name] = dset


 "/usr/local/lib/python2.7/dist-packages/h5py/_hl/group.py", line 287, in __setitem__

h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl)


 "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper


 "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper


 "h5py/h5o.pyx", line 202, in h5py.h5o.link
RuntimeError: Unable to create link (name already exists)

Traceback (most recent call last):


 "/home/shuxiaobo/anaconda3/bin/fairseq-train", line 11, in <module>

load_entry_point('fairseq', 'console_scripts', 'fairseq-train')()


 "/data/fairseq/fairseq_cli/train.py", line 322, in cli_main

main(args)


 "/data/fairseq/fairseq_cli/train.py", line 81, in main

train(args, trainer, task, epoch_itr)


 "/data/fairseq/fairseq_cli/train.py", line 122, in train

log_output = trainer.train_step(samples)


 "/data/fairseq/fairseq/trainer.py", line 324, in train_step

raise e


 "/data/fairseq/fairseq/trainer.py", line 294, in train_step

ignore_grad


 "/data/fairseq/fairseq/tasks/fairseq_task.py", line 231, in train_step

loss, sample_size, logging_output = criterion(model, sample)


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/data/fairseq/fairseq/criterions/sentence_ranking.py", line 49, in forward

classification_head_name='sentence_classification_head',


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/data/fairseq/fairseq/models/roberta/model.py", line 99, in forward

x, extra = self.decoder(src_tokens, features_only, return_all_hiddens, **kwargs)


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/data/fairseq/fairseq/models/roberta/model.py", line 284, in forward

x, extra = self.extract_features(src_tokens, return_all_hiddens)


 "/data/fairseq/fairseq/models/roberta/model.py", line 291, in extract_features

src_tokens, last_state_only=not return_all_hiddens,


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/data/fairseq/fairseq/modules/transformer_sentence_encoder.py", line 182, in forward

x = self.embed_tokens(tokens)


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/modules/sparse.py", line 114, in forward

self.norm_type, self.scale_grad_by_freq, self.sparse)


 "/home/shuxiaobo/anaconda3/lib/python3.7/site-packages/torch/nn/functional.py", line 1467, in embedding

return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: _th_index_select not supported on CPUType for Half
