Hello everyone,
I am trying to figure out is there any “replace by value” way in pytorch that is differetiable.
For eg
a = torch.tensor([1.5, 2, 1.5, 3]) 

And I want to replace 1.5 with 0.
Is there a way that can be done and with the autograd supporting it?
Thanks!!