I am translating a numpy code to Tensorflow.
It has the following line:
netout[..., 5:] *= netout[..., 5:] > obj_threshold
This is not the same Tensorflow syntax, I'm having trouble finding the functions with the same behavior.
Firstly I tried:
netout[..., 5:] * netout[..., 5:] > obj_threshold
But the return is a boolean only Tensor.
In this case I want all values below the obj_threshold to be 0.