Traceback (most recent call last):


 "main.py", line 301, in <module>

main()


 "main.py", line 124, in main

train(train_loader, model, criterion, optimizer, epoch)


 "main.py", line 166, in train

output = model(input_var)


 "/opt/anaconda2/lib/python2.7/site-packages/torch/nn/modules/module.py", line 206, in __call__

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


 "/opt/anaconda2/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 61, in forward

outputs = self.parallel_apply(replicas, inputs, kwargs)


 "/opt/anaconda2/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 71, in parallel_apply

return parallel_apply(replicas, inputs, kwargs)


 "/opt/anaconda2/lib/python2.7/site-packages/torch/nn/parallel/parallel_apply.py", line 46, in parallel_apply

raise output
TypeError: mean received an invalid combination of arguments - got (dim=int, keepdim=bool, ), but expected one of:

Traceback (most recent call last):


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/elasticsearch/connection/http_urllib3.py", line 245, in perform_request

response = self.pool.urlopen(


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 719, in urlopen

retries = retries.increment(


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/util/retry.py", line 376, in increment

raise six.reraise(type(error), error, _stacktrace)


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/packages/six.py", line 735, in reraise

raise value


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 665, in urlopen

httplib_response = self._make_request(


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 387, in _make_request

conn.request(method, url, **httplib_request_kw)


 "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/http/client.py", line 1245, in request

self._send_request(method, url, body, headers, encode_chunked)


 "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/http/client.py", line 1291, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/http/client.py", line 1240, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/http/client.py", line 1008, in _send_output

self.send(msg)


 "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/http/client.py", line 948, in send

self.connect()


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/connection.py", line 184, in connect

conn = self._new_conn()


 "/Users/renanyudi/www/wise-chat/env/lib/python3.8/site-packages/urllib3/connection.py", line 168, in _new_conn

raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x149bf9670>: Failed to establish a new connection: [Errno 61] Connection refused
