summaryrefslogtreecommitdiff
path: root/torch/legacy/nn/Clamp.py
blob: 90eec28bb094442cbaad8dabd27444c50291a230 (plain)
1
2
3
4
5
6
import torch
from .HardTanh import HardTanh

class Clamp(HardTanh):
    def __init__(self, min_value, max_value):
        super(Clamp, self,).__init__(min_value, max_value)