Skip to content

Does Halide support bounds inference for RVars? #6862

Answered by abadams
stonessteins asked this question in Q&A
Discussion options

You must be logged in to vote

Generally speaking a function that uses an RDom changes its meaning if you don't compute the full domain, so the answer is no. But in the specific example you give you can just use a pure Var instead of r:

Func f("f");
Var x("x");
f(x) = input(x);
f(x) = f(x) + 1;
output(x) = f(x);
f.compute_at(output, x);

Update definitions don't have to use RDoms

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexreinking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants