Traceback (most recent call last):


 "test.py", line 56, in <module>

torch.onnx.export(model, dummy_input, "Deblur.onnx")


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/__init__.py", line 143, in export

strip_doc_string, dynamic_axes, keep_initializers_as_inputs)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 66, in export

dynamic_axes=dynamic_axes, keep_initializers_as_inputs=keep_initializers_as_inputs)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 382, in _export

fixed_batch_size=fixed_batch_size)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 249, in _model_to_graph

graph, torch_out = _trace_and_get_graph_from_model(model, args, training)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 198, in _trace_and_get_graph_from_model

orig_state_dict_keys = _unique_state_dict(model).keys()


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/jit/__init__.py", line 282, in _unique_state_dict

state_dict = module.state_dict(keep_vars=True)
AttributeError: 'TestModel' object has no attribute 'state_dict'

Traceback (most recent call last):


 "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 1112, in communicate

req.parse_request()


 "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 638, in parse_request

success = self.read_request_line()


 "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 676, in read_request_line

request_line = self.rfile.readline()


 "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 233, in readline

data = self.rfile.readline(256)


 "/usr/local/lib/python2.7/dist-packages/cheroot/makefile.py", line 233, in readline

data = self.recv(self._rbufsize)


 "/usr/local/lib/python2.7/dist-packages/cheroot/makefile.py", line 87, in recv

data = self._sock.recv(size)
AttributeError: 'NoneType' object has no attribute 'recv'
