Commit a4707798 authored by Eugene Brevdo's avatar Eugene Brevdo Committed by TensorFlower Gardener
Browse files

TF WhereOp now acts more like np.where: extend input types to any numeric type.

(with the exception of tf.half).

This allows one to call:
  tf.where(float_tensor)
instead of
  tf.where(tf.not_equal(float_tensor, 0))

or
  tf.where(complex_tensor)
instead of
  tf.where(tf.not_equal(tf.abs(complex_tensor), 0))

PiperOrigin-RevId: 170758184
parent 553d10cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment