Args: min (float): min value, under which element is replaced by min. max (float): max value, above which element is replaced by max.
(self, min, max)
| 493 | """ |
| 494 | |
| 495 | def __init__(self, min, max): |
| 496 | """ |
| 497 | Args: |
| 498 | min (float): min value, under which element is replaced by min. |
| 499 | max (float): max value, above which element is replaced by max. |
| 500 | """ |
| 501 | super(Clip, self).__init__() |
| 502 | self.max = max |
| 503 | self.min = min |
| 504 | |
| 505 | def forward(self, x): |
| 506 | """ |