Something like this?
def NoiseFloor(x):
     mask = tf.greater(x, 7)
     zeros = tf.zeros(x.shape, tf.int32)
     return tf.where(mask, x, zeros)
 
inp = tf.constant([1,2,3,4,5,6,7,8,9,10])
out = NoiseFloor(inp)