Traceback (most recent call last):


 "/usr/local/lib/python3.8/site-packages/aiobotocore/client.py", line 111, in _make_api_call

http, parsed_response = await self._make_request(


 "/usr/local/lib/python3.8/site-packages/aiobotocore/client.py", line 131, in _make_request

return await self._endpoint.make_request(operation_model, request_dict)


 "/usr/local/lib/python3.8/site-packages/aiobotocore/endpoint.py", line 84, in _send_request

request = await self.create_request(request_dict, operation_model)


 "/usr/local/lib/python3.8/site-packages/aiobotocore/endpoint.py", line 77, in create_request

await self._event_emitter.emit(event_name, request=request,


 "/usr/local/lib/python3.8/site-packages/aiobotocore/hooks.py", line 27, in _emit

response = await handler(**kwargs)


 "/usr/local/lib/python3.8/site-packages/aiobotocore/signers.py", line 16, in handler

return await self.sign(operation_name, request)


 "/usr/local/lib/python3.8/site-packages/aiobotocore/signers.py", line 53, in sign

auth = await self.get_auth_instance(**kwargs)


 "/usr/local/lib/python3.8/site-packages/aiobotocore/signers.py", line 75, in get_auth_instance

frozen_credentials = await self._credentials.get_frozen_credentials()


 "/usr/local/lib/python3.8/site-packages/aiobotocore/credentials.py", line 290, in get_frozen_credentials

await self._refresh()


 "/usr/local/lib/python3.8/site-packages/aiobotocore/credentials.py", line 257, in _refresh

async with self._refresh_lock:


 "/usr/local/lib/python3.8/asyncio/locks.py", line 97, in __aenter__

await self.acquire()


 "/usr/local/lib/python3.8/asyncio/locks.py", line 203, in acquire

await fut
RuntimeError: Task <Task pending name='Task-59191' coro=<App._process_file() running at x> cb=[gather.<locals>._done_callback() at /usr/local/lib/python3.8/asyncio/tasks.py:751]> got Future <Future pending> attached to a different loop

Traceback (most recent call last):


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

main(mode=1)


 "/code/edge-connect-master/main.py", line 56, in main

model.train()


 "/code/edge-connect-master/src/edge_connect.py", line 179, in train

self.edge_model.backward(e_gen_loss, e_dis_loss)


 "/code/edge-connect-master/src/models.py", line 152, in backward

gen_loss.backward()


 "/usr/local/lib/python3.5/dist-packages/torch/tensor.py", line 102, in backward

torch.autograd.backward(self, gradient, retain_graph, create_graph)


 "/usr/local/lib/python3.5/dist-packages/torch/autograd/__init__.py", line 90, in backward

allow_unreachable=True)
# allow_unreachable flag
RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.
