Akin to this question here, given an array dists
, one can filter out elements following multiple conditions using np.where
and &
, e.g.
dists[np.where((dists >= r) & (dists**2. <= 100))]
Is there an equivalent way to input more than one condition in tf.where
?