You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "train.py", line 288, in
mp.spawn(init_processes, args=(args,), nprocs=args.gpus)
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 200, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 158, in start_processes
while not context.join():
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 119, in join
raise Exception(msg)
Exception:
-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap
fn(i, *args)
File "/home/WangTing/program/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/train.py", line 266, in init_processes
main(args, local_rank)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/train.py", line 192, in main
loss, acc = model(batch, update_mem_bias=(global_step > args.update_retriever_after))
File "/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/generator.py", line 363, in forward
src_repr, src_mask, mem_repr, mem_mask, copy_seq, mem_bias = self.encode_step(data, update_mem_bias=update_mem_bias)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/generator.py", line 270, in encode_step
src_repr, src_mask, mem_ret = self.retrieve_step(inp, work)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/generator.py", line 264, in retrieve_step
src, src_mask, mem_ret = self.retriever.work(inp, allow_hit=work)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/retriever.py", line 247, in work
all_mem_feats = self.mem_feat_or_feat_maker[indices].to(src_feat.device)
IndexError: index 112898 is out of bounds for dimension 0 with size 87928
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "train.py", line 288, in
mp.spawn(init_processes, args=(args,), nprocs=args.gpus)
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 200, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 158, in start_processes
while not context.join():
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 119, in join
raise Exception(msg)
Exception:
-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "/home/WangTing/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap
fn(i, *args)
File "/home/WangTing/program/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/train.py", line 266, in init_processes
main(args, local_rank)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/train.py", line 192, in main
loss, acc = model(batch, update_mem_bias=(global_step > args.update_retriever_after))
File "/anaconda3/envs/prototype/lib/python3.6/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/generator.py", line 363, in forward
src_repr, src_mask, mem_repr, mem_mask, copy_seq, mem_bias = self.encode_step(data, update_mem_bias=update_mem_bias)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/generator.py", line 270, in encode_step
src_repr, src_mask, mem_ret = self.retrieve_step(inp, work)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/generator.py", line 264, in retrieve_step
src, src_mask, mem_ret = self.retriever.work(inp, allow_hit=work)
File "/PycharmProgram/copyisallyouneed-master_1/copyisallyouneed-master/retriever.py", line 247, in work
all_mem_feats = self.mem_feat_or_feat_maker[indices].to(src_feat.device)
IndexError: index 112898 is out of bounds for dimension 0 with size 87928
The text was updated successfully, but these errors were encountered: