{"action":"created","issue":{"url":"https://api.github.com/repos/stanford-ppl/spatial-lang/issues/111","repository_url":"https://api.github.com/repos/stanford-ppl/spatial-lang","labels_url":"https://api.github.com/repos/stanford-ppl/spatial-lang/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/stanford-ppl/spatial-lang/issues/111/comments","events_url":"https://api.github.com/repos/stanford-ppl/spatial-lang/issues/111/events","html_url":"https://github.com/stanford-ppl/spatial-lang/issues/111","id":234657955,"number":111,"title":"API for reading binary data","user":{"login":"shadjis","id":8742725,"avatar_url":"https://avatars3.githubusercontent.com/u/8742725?v=4","gravatar_id":"","url":"https://api.github.com/users/shadjis","html_url":"https://github.com/shadjis","followers_url":"https://api.github.com/users/shadjis/followers","following_url":"https://api.github.com/users/shadjis/following{/other_user}","gists_url":"https://api.github.com/users/shadjis/gists{/gist_id}","starred_url":"https://api.github.com/users/shadjis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadjis/subscriptions","organizations_url":"https://api.github.com/users/shadjis/orgs","repos_url":"https://api.github.com/users/shadjis/repos","events_url":"https://api.github.com/users/shadjis/events{/privacy}","received_events_url":"https://api.github.com/users/shadjis/received_events","type":"User","site_admin":false},"labels":[{"id":516427371,"url":"https://api.github.com/repos/stanford-ppl/spatial-lang/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"dkoeplin","id":5581940,"avatar_url":"https://avatars2.githubusercontent.com/u/5581940?v=4","gravatar_id":"","url":"https://api.github.com/users/dkoeplin","html_url":"https://github.com/dkoeplin","followers_url":"https://api.github.com/users/dkoeplin/followers","following_url":"https://api.github.com/users/dkoeplin/following{/other_user}","gists_url":"https://api.github.com/users/dkoeplin/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeplin/subscriptions","organizations_url":"https://api.github.com/users/dkoeplin/orgs","repos_url":"https://api.github.com/users/dkoeplin/repos","events_url":"https://api.github.com/users/dkoeplin/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeplin/received_events","type":"User","site_admin":false},"assignees":[{"login":"dkoeplin","id":5581940,"avatar_url":"https://avatars2.githubusercontent.com/u/5581940?v=4","gravatar_id":"","url":"https://api.github.com/users/dkoeplin","html_url":"https://github.com/dkoeplin","followers_url":"https://api.github.com/users/dkoeplin/followers","following_url":"https://api.github.com/users/dkoeplin/following{/other_user}","gists_url":"https://api.github.com/users/dkoeplin/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeplin/subscriptions","organizations_url":"https://api.github.com/users/dkoeplin/orgs","repos_url":"https://api.github.com/users/dkoeplin/repos","events_url":"https://api.github.com/users/dkoeplin/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeplin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-06-08T21:13:10Z","updated_at":"2017-07-23T23:00:38Z","closed_at":null,"body":"It would be nice to have a function similar to numpy.fromfile, e.g.\r\n\r\n```\r\nReadTensor(file_path, datatype, dims)\r\n```\r\n\r\nWhere the file is in binary format, e.g. 4 byte float, 1 byte uint8, etc.\r\n\r\nI can make a separate issue but it would also be nice to have a DecodeJPEG function which takes a file path e.g. something equivalent to the following Scala\r\n\r\n```\r\n  import javax.imageio.ImageIO\r\n  val photo1 = ImageIO.read(new File(\"photo.jpg\"))\r\n  printf(\"Photo size is %d x %d\\n, photo1.getWidth, photo1.getHeight)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/stanford-ppl/spatial-lang/issues/comments/317288515","html_url":"https://github.com/stanford-ppl/spatial-lang/issues/111#issuecomment-317288515","issue_url":"https://api.github.com/repos/stanford-ppl/spatial-lang/issues/111","id":317288515,"user":{"login":"dkoeplin","id":5581940,"avatar_url":"https://avatars2.githubusercontent.com/u/5581940?v=4","gravatar_id":"","url":"https://api.github.com/users/dkoeplin","html_url":"https://github.com/dkoeplin","followers_url":"https://api.github.com/users/dkoeplin/followers","following_url":"https://api.github.com/users/dkoeplin/following{/other_user}","gists_url":"https://api.github.com/users/dkoeplin/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeplin/subscriptions","organizations_url":"https://api.github.com/users/dkoeplin/orgs","repos_url":"https://api.github.com/users/dkoeplin/repos","events_url":"https://api.github.com/users/dkoeplin/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeplin/received_events","type":"User","site_admin":false},"created_at":"2017-07-23T23:00:38Z","updated_at":"2017-07-23T23:00:38Z","body":"Binary file reading is now added and confirmed working in Scala, but no support yet in C"}}
{"actor":{"display_login":"dkoeplin"}}