title: is there any similar function with clamp_ in tensorflow > 2.0
body: <p>I'm converting torch code to tensorflow 2.0 <br/></p>
  
  <pre><code>prior_boxes = torch.FloatTensor(prior_boxes).to(device)  # (8732, 4)
  prior_boxes.clamp_(0, 1)  # (8732, 4)
  </code></pre>
  
  <p>is there any replacement of clamp_(0,1) in tensorflow > 2.0?</p>