{"action":"opened","issue":{"url":"https://api.github.com/repos/NervanaSystems/neon/issues/23","labels_url":"https://api.github.com/repos/NervanaSystems/neon/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/NervanaSystems/neon/issues/23/comments","events_url":"https://api.github.com/repos/NervanaSystems/neon/issues/23/events","html_url":"https://github.com/NervanaSystems/neon/issues/23","id":76615947,"number":23,"title":"Support model serialization and saving predictions for RNN's and LSTM's","user":{"login":"scttl","id":30309,"avatar_url":"https://avatars.githubusercontent.com/u/30309?v=3","gravatar_id":"","url":"https://api.github.com/users/scttl","html_url":"https://github.com/scttl","followers_url":"https://api.github.com/users/scttl/followers","following_url":"https://api.github.com/users/scttl/following{/other_user}","gists_url":"https://api.github.com/users/scttl/gists{/gist_id}","starred_url":"https://api.github.com/users/scttl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scttl/subscriptions","organizations_url":"https://api.github.com/users/scttl/orgs","repos_url":"https://api.github.com/users/scttl/repos","events_url":"https://api.github.com/users/scttl/events{/privacy}","received_events_url":"https://api.github.com/users/scttl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T06:27:07Z","updated_at":"2015-05-15T06:27:07Z","closed_at":null,"body":"Attempts to save predictions (`predictions: ['train', 'test']`) or model parameters (`serialized_path: \"my_model.prm\"`) on either the RNN or LSTM example networks result in a ValueError being raised instead of successful saving:\r\n```\r\nTraceback (most recent call last):\r\n  File \"bin/neon\", line 240, in <module>\r\n    experiment, result, status = main()\r\n  File \"bin/neon\", line 208, in main\r\n    result = experiment.run()\r\n  File \"/home/users/scott/repo/neon/neon/experiments/fit_predict_err.py\", line 114, in run\r\n    pred_set)\r\n  File \"/home/users/scott/repo/neon/neon/models/mlp.py\", line 241, in predict_fullset\r\n    reference[:, start:end] = self.cost_layer.get_reference()\r\n  File \"/home/users/scott/repo/neon/neon/backends/cpu.py\", line 157, in __setitem__\r\n    self._tensor[clean_key] = np.reshape(self._clean(value), req_shape)\r\n  File \"/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py\", line 217, in reshape\r\n    return _wrapit(a, 'reshape', newshape, order=order)\r\n  File \"/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py\", line 43, in _wrapit\r\n    result = getattr(asarray(obj), method)(*args, **kwds)\r\nValueError: total size of new array must be unchanged\r\n```"}}