{"action":"created","issue":{"url":"https://api.github.com/repos/deepmind/torch-hdf5/issues/6","repository_url":"https://api.github.com/repos/deepmind/torch-hdf5","labels_url":"https://api.github.com/repos/deepmind/torch-hdf5/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/deepmind/torch-hdf5/issues/6/comments","events_url":"https://api.github.com/repos/deepmind/torch-hdf5/issues/6/events","html_url":"https://github.com/deepmind/torch-hdf5/issues/6","id":24565844,"number":6,"title":"CharTensor & ShortTensor not handled correctly","user":{"login":"d11","id":39658,"avatar_url":"https://avatars.githubusercontent.com/u/39658?v=3","gravatar_id":"","url":"https://api.github.com/users/d11","html_url":"https://github.com/d11","followers_url":"https://api.github.com/users/d11/followers","following_url":"https://api.github.com/users/d11/following{/other_user}","gists_url":"https://api.github.com/users/d11/gists{/gist_id}","starred_url":"https://api.github.com/users/d11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d11/subscriptions","organizations_url":"https://api.github.com/users/d11/orgs","repos_url":"https://api.github.com/users/d11/repos","events_url":"https://api.github.com/users/d11/events{/privacy}","received_events_url":"https://api.github.com/users/d11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deepmind/torch-hdf5/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-12-19T16:11:21Z","updated_at":"2016-04-20T13:36:32Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/deepmind/torch-hdf5/issues/comments/212426299","html_url":"https://github.com/deepmind/torch-hdf5/issues/6#issuecomment-212426299","issue_url":"https://api.github.com/repos/deepmind/torch-hdf5/issues/6","id":212426299,"user":{"login":"vadimkantorov","id":1041752,"avatar_url":"https://avatars.githubusercontent.com/u/1041752?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimkantorov","html_url":"https://github.com/vadimkantorov","followers_url":"https://api.github.com/users/vadimkantorov/followers","following_url":"https://api.github.com/users/vadimkantorov/following{/other_user}","gists_url":"https://api.github.com/users/vadimkantorov/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimkantorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimkantorov/subscriptions","organizations_url":"https://api.github.com/users/vadimkantorov/orgs","repos_url":"https://api.github.com/users/vadimkantorov/repos","events_url":"https://api.github.com/users/vadimkantorov/events{/privacy}","received_events_url":"https://api.github.com/users/vadimkantorov/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T13:36:32Z","updated_at":"2016-04-20T13:36:32Z","body":"Yes, I guess it would. And I think it's nice to have mapping between native type and Torch tensor type to be done consistently (even regardless of serialization stuff).\r\n\r\nThinking more about it, a fix like this isn't enough for a full serialization solution (how do we store booleans or numbers? if we store them as 1-element tensors, do we automatically squeeze all read tensors?). Attribute support would be a better way to preserve type information."}}