Hello,
The function torch.clamp() requires min and max to be scalars. Is there a quick way to replicate the tf function clip_by_value where min and max can be tensors of the same size as the input tensor? I just want to avoid nesting a few 'for’s.
Thanks