What is pseudo (*) - equivalent in Tensorflow for this?
array[array < 50] = 0
I assume this should be something like:
array = tf.something(array, ...)
array = array.something(...)
(*) I do not pretend to save the mutable array and its execution at the moment, since I would be a tensor.
Maybe another way to ask the question: what will be the code for applying the array of conditional tensors tf.cond () depending on tf.less () to an array of numbers?
source
share