torch.clamp(input, min, max, out=None) → Tensor
torch.
clamp
Clamp all elements in input into the range [ min, max ] and return a resulting tensor:
input
If input is of type FloatTensor or DoubleTensor, args min and max must be real numbers, otherwise they should
京公网安备 11010502049817号