Commit d62a934
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: 311b271e15baf46fbccaa4bacac072981abe6f611 parent 3a92785 commit d62a934
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
0 commit comments