{"action":"created","issue":{"url":"https://api.github.com/repos/joschu/cgt/issues/17","labels_url":"https://api.github.com/repos/joschu/cgt/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/joschu/cgt/issues/17/comments","events_url":"https://api.github.com/repos/joschu/cgt/issues/17/events","html_url":"https://github.com/joschu/cgt/issues/17","id":103845864,"number":17,"title":"DType.canon sees 'i8' type (provided by TensorType) as invalid when running mnist or char-rnn examples","user":{"login":"tjrileywisc","id":5837808,"avatar_url":"https://avatars.githubusercontent.com/u/5837808?v=3","gravatar_id":"","url":"https://api.github.com/users/tjrileywisc","html_url":"https://github.com/tjrileywisc","followers_url":"https://api.github.com/users/tjrileywisc/followers","following_url":"https://api.github.com/users/tjrileywisc/following{/other_user}","gists_url":"https://api.github.com/users/tjrileywisc/gists{/gist_id}","starred_url":"https://api.github.com/users/tjrileywisc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjrileywisc/subscriptions","organizations_url":"https://api.github.com/users/tjrileywisc/orgs","repos_url":"https://api.github.com/users/tjrileywisc/repos","events_url":"https://api.github.com/users/tjrileywisc/events{/privacy}","received_events_url":"https://api.github.com/users/tjrileywisc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joschu/cgt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/joschu/cgt/milestones/1","html_url":"https://github.com/joschu/cgt/milestones/0.2","labels_url":"https://api.github.com/repos/joschu/cgt/milestones/1/labels","id":1284959,"number":1,"title":"0.2","description":null,"creator":{"login":"joschu","id":144178,"avatar_url":"https://avatars.githubusercontent.com/u/144178?v=3","gravatar_id":"","url":"https://api.github.com/users/joschu","html_url":"https://github.com/joschu","followers_url":"https://api.github.com/users/joschu/followers","following_url":"https://api.github.com/users/joschu/following{/other_user}","gists_url":"https://api.github.com/users/joschu/gists{/gist_id}","starred_url":"https://api.github.com/users/joschu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschu/subscriptions","organizations_url":"https://api.github.com/users/joschu/orgs","repos_url":"https://api.github.com/users/joschu/repos","events_url":"https://api.github.com/users/joschu/events{/privacy}","received_events_url":"https://api.github.com/users/joschu/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-09-01T21:32:06Z","updated_at":"2015-09-01T21:34:52Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-29T11:30:46Z","updated_at":"2015-09-03T23:46:22Z","closed_at":null,"body":"When I attempt to run the mnist or char-rnn examples, I get the following error stack:\r\n...\r\n  File \"C:\\Users\\triley\\workspace\\cgt\\cgt\\core.py\", line 1386, in typ_apply\r\n    return TensorType('i8',0)\r\n  File \"C:\\Users\\triley\\workspace\\cgt\\cgt\\core.py\", line 65, in  \\_\\_init\\_\\_\r\n    self.dtype = Dtype.canon(dtype)\r\n  File \"C:\\Users\\triley\\workspace\\cgt\\cgt\\core.py\", line 31, in canon\r\n    raise ValueError(\"Invalid dtype %s\"%dt)\r\nValueError: Invalid dtype int64\r\n\r\nThe error appears to occur because the dtype check in Dtype.canon (in /cgt/core.py) resolves the numpy dtype of 'i8' into 'q', which isn't part of the 'fdg', 'iulBb?', or 'FDG' types. I tried to add 'q' myself (to the second group, I think this is where it goes) but then I ran into another problem with an assert and neither script ran.\r\n\r\nThis is on Windows 10, with Python 2.7.10 and running cgt straight from the github repo (no compilation)."},"comment":{"url":"https://api.github.com/repos/joschu/cgt/issues/comments/137603146","html_url":"https://github.com/joschu/cgt/issues/17#issuecomment-137603146","issue_url":"https://api.github.com/repos/joschu/cgt/issues/17","id":137603146,"user":{"login":"joschu","id":144178,"avatar_url":"https://avatars.githubusercontent.com/u/144178?v=3","gravatar_id":"","url":"https://api.github.com/users/joschu","html_url":"https://github.com/joschu","followers_url":"https://api.github.com/users/joschu/followers","following_url":"https://api.github.com/users/joschu/following{/other_user}","gists_url":"https://api.github.com/users/joschu/gists{/gist_id}","starred_url":"https://api.github.com/users/joschu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschu/subscriptions","organizations_url":"https://api.github.com/users/joschu/orgs","repos_url":"https://api.github.com/users/joschu/repos","events_url":"https://api.github.com/users/joschu/events{/privacy}","received_events_url":"https://api.github.com/users/joschu/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T23:46:22Z","updated_at":"2015-09-03T23:46:22Z","body":"Made a small fix in 994728a that chooses the dtype in a more sensible way in Dtype.canon. Could you try it out?\r\nI'm a little worried about the AssertionError, but we'll see what happens."}}