unit_indicator#

sdm.prior.unit_indicator(x: Tensor) → Tensor#

Map values in [0, 1] to 1 and others to 0 elementwise.

Parameters:

x (Tensor)

Return type:

Tensor