Skip to content

Express a gating mechanism

Frank Seide edited this page Aug 27, 2016 · 5 revisions

The simplest way is to use

BS.Boolean.If (condition, thenExpression, elseExpression)

which works with scalars as well as tensors (all arguments can broadcast).

Clone this wiki locally