tl.where(mask, x, 0) does: conditional select to handle boundary conditions

`tl.where(mask, x, 0) = x if mask else 0`

Image: Intropin (Mark Oniffrey), CC BY-SA 4.0, via Wikimedia Commons

tl.where(mask, x, 0) does: conditional select to handle boundary conditions

`tl.where(mask, x, 0) = x if mask else 0`

Related concepts

Swipe through more Machine Learning concepts

Open Pocket Polymath