Traceback (most recent call last):


 "names.py", line 86, in <module>

rnn = RNN(n_letters, n_hidden, n_categories)


 "names.py", line 72, in __init__

self.i2o = nn.Linear(input_size + hidden_size, output_size)


 "/home/ayush99/anaconda3/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 46, in __init__

self.reset_parameters()


 "/home/ayush99/anaconda3/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 49, in reset_parameters

stdv = 1. / math.sqrt(self.weight.size(1))
RuntimeError: invalid argument 2: dimension 1 out of range of 0D tensor at /opt/conda/conda-bld/pytorch-cpu_1518282373170/work/torch/lib/TH/generic/THTensor.c:24

Traceback (most recent call last):


 "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner

self.run()


 "/home/ignazio/PycharmProjects/gsmtester/modulo_sniffer.py", line 27, in run

self.cap.apply_on_packets(self.listen_for_packet)


 "/home/ignazio/PycharmProjects/gsmtester/venv/local/lib/python2.7/site-packages/pyshark/capture/capture.py", line 256, in apply_on_packets

return self.eventloop.run_until_complete(coro)


 "/home/ignazio/PycharmProjects/gsmtester/venv/local/lib/python2.7/site-packages/trollius/base_events.py", line 300, in run_until_complete

return future.result()


 "/home/ignazio/PycharmProjects/gsmtester/venv/local/lib/python2.7/site-packages/trollius/futures.py", line 287, in result

raise self._exception
RuntimeError: There is no current event loop in thread 'Thread-1'
