I wonder if I can use torch.nn.L1Loss as L1 function, in other words
criterion = torch.nn.L1Loss(reduction=none)
similarity = criterion(x,y)
model(similarity)

where both x,y have reqires_grad=True, I am not sure if it will automatically make y to have requires_grad=False or not?