7 ms·
Thresholding requires branching no?
by abyesilyurt 1y ago
Thresholding requires branching no?
- Legend2440 1y agoNo, it’s just a math operation and can be applied to any amount of data in parallel.
- WJW 1y agoNo, you can do that without branching. See https://en.algorithmica.org/hpc/pipelining/branchless/#predication https://en.algorithmica.org/hpc/pipelining/branchless/#predi... for example.
- bqmjjx0kac 1y agoAs demonstrated in the article, you can compute clamp(x, min, max) with straight-line code.