{"action":"created","issue":{"url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi/issues/31","repository_url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi","labels_url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi/issues/31/comments","events_url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi/issues/31/events","html_url":"https://github.com/samjabrahams/tensorflow-on-raspberry-pi/issues/31","id":165955522,"number":31,"title":"Tutorial Code fails on Pi3","user":{"login":"SuperJonotron","id":20496220,"avatar_url":"https://avatars.githubusercontent.com/u/20496220?v=3","gravatar_id":"","url":"https://api.github.com/users/SuperJonotron","html_url":"https://github.com/SuperJonotron","followers_url":"https://api.github.com/users/SuperJonotron/followers","following_url":"https://api.github.com/users/SuperJonotron/following{/other_user}","gists_url":"https://api.github.com/users/SuperJonotron/gists{/gist_id}","starred_url":"https://api.github.com/users/SuperJonotron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuperJonotron/subscriptions","organizations_url":"https://api.github.com/users/SuperJonotron/orgs","repos_url":"https://api.github.com/users/SuperJonotron/repos","events_url":"https://api.github.com/users/SuperJonotron/events{/privacy}","received_events_url":"https://api.github.com/users/SuperJonotron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-17T01:30:49Z","updated_at":"2016-07-17T06:50:33Z","closed_at":null,"body":"Attempting to run the code from the tutorial on tensorflow.org found here:\r\nhttps://www.tensorflow.org/versions/r0.9/tutorials/tflearn/index.html\r\n\r\nAt the line:\r\nclassifier.fit(x=x_train, y=y_train, steps=200)\r\n\r\nI get the error:\r\nTypeError: DataType int64 for attr 'T' not in list of allowed values: float32, int32, qint8, quint8, qint32\r\n\r\n\r\nI am running on a Pi3 on Raspbian GNU/Linux 8 (jessie)\" with Python version 2.7.9\r\n"},"comment":{"url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi/issues/comments/233168232","html_url":"https://github.com/samjabrahams/tensorflow-on-raspberry-pi/issues/31#issuecomment-233168232","issue_url":"https://api.github.com/repos/samjabrahams/tensorflow-on-raspberry-pi/issues/31","id":233168232,"user":{"login":"samjabrahams","id":11607205,"avatar_url":"https://avatars.githubusercontent.com/u/11607205?v=3","gravatar_id":"","url":"https://api.github.com/users/samjabrahams","html_url":"https://github.com/samjabrahams","followers_url":"https://api.github.com/users/samjabrahams/followers","following_url":"https://api.github.com/users/samjabrahams/following{/other_user}","gists_url":"https://api.github.com/users/samjabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/samjabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samjabrahams/subscriptions","organizations_url":"https://api.github.com/users/samjabrahams/orgs","repos_url":"https://api.github.com/users/samjabrahams/repos","events_url":"https://api.github.com/users/samjabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/samjabrahams/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T06:50:33Z","updated_at":"2016-07-17T06:50:33Z","body":"Thanks for opening this up @SuperJonotron! I was able to replicate this bug, and this has been really helpful in pinpointing some quirks that were introduced in the official TensorFlow repository. I'm compiling now to see if I've got the fix hammered out.\r\n\r\nIf you're interested in the details (at least what I'm pretty sure is going on): Essentially, [these lines](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/platform/platform.h#L40-L45) are causing the compilation to target the Raspberry Pi as a mobile device, which in turn causes no 64-bit floating points to be registered for any Ops [in this file](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/register_types.h#L107-L131). The current hack-y fix is to delete [this line](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/platform/platform.h#L45). If that works, I'll try to get a fix introduced into the official repository that is a bit more robust.\r\n\r\nI'll keep you posted on this."}}
{"actor":{"display_login":"samjabrahams"}}