Traceback (most recent call last):


 "train.py", line 122, in <module>

train_abs(args, device_id)


 "/home/ubuntu/will/PreSumm-master/src/train_abstractive.py", line 273, in train_abs

train_abs_single(args, device_id)


 "/home/ubuntu/will/PreSumm-master/src/train_abstractive.py", line 334, in train_abs_single

trainer.train(train_iter_fct, args.train_steps)


 "/home/ubuntu/will/PreSumm-master/src/models/trainer.py", line 158, in train

report_stats)


 "/home/ubuntu/will/PreSumm-master/src/models/trainer.py", line 223, in _gradient_accumulation

outputs, scores = self.model(src, tgt,segs, clss, mask_src, mask_tgt, mask_cls)


 "/home/ubuntu/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__

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


 "/home/ubuntu/will/PreSumm-master/src/models/model_builder.py", line 241, in forward

top_vec = self.bert(src, segs, mask_src)


 "/home/ubuntu/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__

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


 "/home/ubuntu/will/PreSumm-master/src/models/model_builder.py", line 127, in forward

top_vec, _ = self.model(x, segs, attention_mask=mask)


 "/home/ubuntu/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)
TypeError: forward() got multiple values for argument 'attention_mask'

Traceback (most recent call last):


 "/home/py/project/chd_youka/async_spider/chaojiying.py", line 65, in <module>

loop.run_until_complete(main())
#1902 验证码类型
官方网站>>价格体系 3.4+版 print 后要加()


 "/usr/local/lib/python3.7/asyncio/base_events.py", line 568, in run_until_complete

return future.result()


 "/home/py/project/chd_youka/async_spider/chaojiying.py", line 54, in main

code = await chaojiying.PostPic(im, 4004,session)


 "/home/py/project/chd_youka/async_spider/chaojiying.py", line 38, in PostPic

async with session.post(url='http://upload.chaojiying.net/Upload/Processing.php', data=params, headers=self.headers) as response:


 "/home/py/.virtualenv/youka/lib/python3.7/site-packages/aiohttp/client.py", line 1005, in __aenter__

self._resp = await self._coro


 "/home/py/.virtualenv/youka/lib/python3.7/site-packages/aiohttp/client.py", line 466, in _request

ssl=ssl, proxy_headers=proxy_headers, traces=traces)


 "/home/py/.virtualenv/youka/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 294, in __init__

self.update_body_from_data(data)


 "/home/py/.virtualenv/youka/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 484, in update_body_from_data

body = FormData(body)()


 "/home/py/.virtualenv/youka/lib/python3.7/site-packages/aiohttp/formdata.py", line 148, in __call__

return self._gen_form_data()


 "/home/py/.virtualenv/youka/lib/python3.7/site-packages/aiohttp/formdata.py", line 131, in _gen_form_data

type(value), headers, value)) from exc
TypeError: Can not serialize value type: <class 'int'>
