{"action":"created","issue":{"url":"https://api.github.com/repos/torch/torch7/issues/247","labels_url":"https://api.github.com/repos/torch/torch7/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/torch/torch7/issues/247/comments","events_url":"https://api.github.com/repos/torch/torch7/issues/247/events","html_url":"https://github.com/torch/torch7/pull/247","id":81621672,"number":247,"title":"Adding elementType to complement elementSize.","user":{"login":"zakattacktwitter","id":4247897,"avatar_url":"https://avatars.githubusercontent.com/u/4247897?v=3","gravatar_id":"","url":"https://api.github.com/users/zakattacktwitter","html_url":"https://github.com/zakattacktwitter","followers_url":"https://api.github.com/users/zakattacktwitter/followers","following_url":"https://api.github.com/users/zakattacktwitter/following{/other_user}","gists_url":"https://api.github.com/users/zakattacktwitter/gists{/gist_id}","starred_url":"https://api.github.com/users/zakattacktwitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakattacktwitter/subscriptions","organizations_url":"https://api.github.com/users/zakattacktwitter/orgs","repos_url":"https://api.github.com/users/zakattacktwitter/repos","events_url":"https://api.github.com/users/zakattacktwitter/events{/privacy}","received_events_url":"https://api.github.com/users/zakattacktwitter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T20:56:40Z","updated_at":"2015-05-28T10:18:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/torch/torch7/pulls/247","html_url":"https://github.com/torch/torch7/pull/247","diff_url":"https://github.com/torch/torch7/pull/247.diff","patch_url":"https://github.com/torch/torch7/pull/247.patch"},"body":"This is a very simple version of RTTI for Tensor/Storage, it is very useful when interfacing with other systems, in particular where we need to marshal storage data in a type safe way."},"comment":{"url":"https://api.github.com/repos/torch/torch7/issues/comments/106262141","html_url":"https://github.com/torch/torch7/pull/247#issuecomment-106262141","issue_url":"https://api.github.com/repos/torch/torch7/issues/247","id":106262141,"user":{"login":"timharley","id":4367998,"avatar_url":"https://avatars.githubusercontent.com/u/4367998?v=3","gravatar_id":"","url":"https://api.github.com/users/timharley","html_url":"https://github.com/timharley","followers_url":"https://api.github.com/users/timharley/followers","following_url":"https://api.github.com/users/timharley/following{/other_user}","gists_url":"https://api.github.com/users/timharley/gists{/gist_id}","starred_url":"https://api.github.com/users/timharley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timharley/subscriptions","organizations_url":"https://api.github.com/users/timharley/orgs","repos_url":"https://api.github.com/users/timharley/repos","events_url":"https://api.github.com/users/timharley/events{/privacy}","received_events_url":"https://api.github.com/users/timharley/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T10:18:09Z","updated_at":"2015-05-28T10:18:09Z","body":"Was `torch.typename()` not suitable for your purposes?\r\n\r\nAlternatively: `ffi.typeof(tensor:data())` gives ctype information too."}}