Traceback (most recent call last):


 "/usr/local/lib/python3.7/dist-packages/torch/multiprocessing/spawn.py", line 19, in _wrap

fn(i, *args)


 "/opt/tiger/fairseq/fairseq/distributed_utils.py", line 302, in distributed_main

main(cfg, **kwargs)


 "/opt/tiger/fairseq/fairseq_cli/train.py", line 138, in main

valid_losses, should_stop = train(cfg, trainer, task, epoch_itr)


 "/usr/lib/python3.7/contextlib.py", line 74, in inner

return func(*args, **kwds)


 "/opt/tiger/fairseq/fairseq_cli/train.py", line 235, in train

log_output = trainer.train_step(samples)


 "/usr/lib/python3.7/contextlib.py", line 74, in inner

return func(*args, **kwds)


 "/opt/tiger/fairseq/fairseq/trainer.py", line 536, in train_step

ignore_grad=is_dummy_batch,


 "/opt/tiger/fairseq/fairseq/tasks/fairseq_task.py", line 428, in train_step

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


 "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

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


 "/opt/tiger/fairseq/fairseq/criterions/cross_entropy.py", line 35, in forward

net_output = model(**sample["net_input"])


 "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

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


 "/opt/tiger/fairseq/fairseq/legacy_distributed_data_parallel.py", line 83, in forward

return self.module(*inputs, **kwargs)


 "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

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


 "/opt/tiger/fairseq/fairseq/models/wav2vec/wav2vec2_asr.py", line 249, in forward

decoder_out = self.decoder(encoder_out=encoder_out, **kwargs)


 "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

result = self.forward(*input, **kwargs)
TypeError: forward() missing 1 required positional argument: 'prev_output_tokens'

Traceback (most recent call last):


 ".../lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi

result = await app(self.scope, self.receive, self.send)


 ".../lib/python3.7/site-packages/starlette/applications.py", line 134, in __call__

await self.error_middleware(scope, receive, send)


 ".../lib/python3.7/site-packages/starlette/middleware/errors.py", line 162, in __call__

response = self.debug_response(request, exc)


 ".../lib/python3.7/site-packages/starlette/middleware/errors.py", line 236, in debug_response

content = self.generate_html(exc)


 ".../lib/python3.7/site-packages/starlette/middleware/errors.py", line 222, in generate_html

exc_html += self.generate_frame_html(frame, center_lineno, is_collapsed)


 ".../lib/python3.7/site-packages/starlette/middleware/errors.py", line 197, in generate_frame_html

for context_position, line in enumerate(frame.code_context)
TypeError: 'NoneType' object is not iterable
