{"action":"created","issue":{"url":"https://api.github.com/repos/halide/Halide/issues/1658","repository_url":"https://api.github.com/repos/halide/Halide","labels_url":"https://api.github.com/repos/halide/Halide/issues/1658/labels{/name}","comments_url":"https://api.github.com/repos/halide/Halide/issues/1658/comments","events_url":"https://api.github.com/repos/halide/Halide/issues/1658/events","html_url":"https://github.com/halide/Halide/pull/1658","id":193228966,"number":1658,"title":"Add stride (etc) schedule options to Input/Output<Func>","user":{"login":"steven-johnson","id":328955,"avatar_url":"https://avatars.githubusercontent.com/u/328955?v=3","gravatar_id":"","url":"https://api.github.com/users/steven-johnson","html_url":"https://github.com/steven-johnson","followers_url":"https://api.github.com/users/steven-johnson/followers","following_url":"https://api.github.com/users/steven-johnson/following{/other_user}","gists_url":"https://api.github.com/users/steven-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-johnson/subscriptions","organizations_url":"https://api.github.com/users/steven-johnson/orgs","repos_url":"https://api.github.com/users/steven-johnson/repos","events_url":"https://api.github.com/users/steven-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/steven-johnson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-02T22:04:02Z","updated_at":"2016-12-09T00:02:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/halide/Halide/pulls/1658","html_url":"https://github.com/halide/Halide/pull/1658","diff_url":"https://github.com/halide/Halide/pull/1658.diff","patch_url":"https://github.com/halide/Halide/pull/1658.patch"},"body":"(This PR is being offered as an alternative to PR#1649)\n\nCurrently, you are disallowed from using `ImageParam` with new-style Generators; this is problematic for Generators that need to make scheduling decisions based on attributes of the underlying Buffer. \n\nWe could just allow ImageParams back in, but:\n- syntactically this is weird\n- we need something for `Output<>` as well, and using `OutputImageParam` for this is even weirder syntactically\n\nThis PR proposes to add `.has_buffer()` methods to `Input<Func>` and `Output<Func>`, which allows the scheduling code to determine if the Generator is being built in a configuration that guarantees that a given input or output is backed by a Buffer.\n\nIt also provides methods to get/set the stride/min/extent/alignment constraints for inputs and outputs; these methods all assert-fail at Halide compilation time if .has_buffer() returns false.\n\nThis PR also converts enough Generators in the tests and apps to demonstrate that this concept should be adequate to meet existing needs. "},"comment":{"url":"https://api.github.com/repos/halide/Halide/issues/comments/265893304","html_url":"https://github.com/halide/Halide/pull/1658#issuecomment-265893304","issue_url":"https://api.github.com/repos/halide/Halide/issues/1658","id":265893304,"user":{"login":"steven-johnson","id":328955,"avatar_url":"https://avatars.githubusercontent.com/u/328955?v=3","gravatar_id":"","url":"https://api.github.com/users/steven-johnson","html_url":"https://github.com/steven-johnson","followers_url":"https://api.github.com/users/steven-johnson/followers","following_url":"https://api.github.com/users/steven-johnson/following{/other_user}","gists_url":"https://api.github.com/users/steven-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-johnson/subscriptions","organizations_url":"https://api.github.com/users/steven-johnson/orgs","repos_url":"https://api.github.com/users/steven-johnson/repos","events_url":"https://api.github.com/users/steven-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/steven-johnson/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T00:02:21Z","updated_at":"2016-12-09T00:02:21Z","body":"FYI: as of right now, we're leaning towards the solution in https://github.com/halide/Halide/pull/1649 rather than this one. Leaving it open for now, but please don't land."}}
{"actor":{"display_login":"steven-johnson"}}