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

One email a day: 5 concepts + the 5 stories that matter →

Swipe through 100 ML concepts daily

Open TickerNews