Hi!
The method clamp(min=0) is functionally equivalent to ReLU. All ReLU does is to set all negative values to zero and keep all positive values unchanged, which is what is being done in that example with the use of clamp set to min=0.
Here’s the documentation for torch.clamp 64.