what is the equivalent of theano.tensor.clip in pytorch?
I want to clip my tensor (not gradient) values to some range. Is there any function in pytorch like there is a function theano.tensor.clip() in theano?

The function you are searching for is called torch.clamp. You can find the documentation here
