Skip to content

Commit

Permalink
fix lens_blur estimates (halide#5694)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootjalex authored Feb 3, 2021
1 parent 265f2c7 commit 3ba8691
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/lens_blur/lens_blur_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ class LensBlur : public Halide::Generator<LensBlur> {
// (This can be useful in conjunction with RunGen and benchmarks as well
// as auto-schedule, so we do it in all cases.)
// Provide estimates on the input image
left_im.set_estimates({{0, 1536}, {0, 2560}, {0, 3}});
right_im.set_estimates({{0, 1536}, {0, 2560}, {0, 3}});
left_im.set_estimates({{0, 192}, {0, 320}, {0, 3}});
right_im.set_estimates({{0, 192}, {0, 320}, {0, 3}});
// Provide estimates on the parameters
slices.set_estimate(32);
focus_depth.set_estimate(13);
blur_radius_scale.set_estimate(0.5f);
aperture_samples.set_estimate(32);
// Provide estimates on the pipeline output
final.set_estimates({{0, 1536}, {0, 2560}, {0, 3}});
final.set_estimates({{0, 192}, {0, 320}, {0, 3}});

/* THE SCHEDULE */
if (auto_schedule) {
Expand Down

0 comments on commit 3ba8691

Please sign in to comment.