tf.clip_by_value() function

tf.clip_by_value(A, min, max): Input a tensor A and compress the value of each element in A between min and max. Less than min make it equal to min, and elements greater than max have the value equal to max.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324652165&siteId=291194637