SIGN IN SIGN UP

reduce_util: clamp the apply fn start/end

Summary: In helper apply_over_dim_list, we can clamp the start/end, and skip if we don't need to apply fn to any elements.

Reviewed By: manuelcandales

Differential Revision: D48211547

fbshipit-source-id: 311b271e15baf46fbccaa4bacac072981abe6f61
H
Hansong Zhang committed
d62a9349e60b33656d3475a9fee871fe24a5e583
Parent: 3a92785
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 8/10/2023, 11:17:12 PM