It doesn’t work. This scheme only changes the gradients of “that” gradients. In other words, even though you change some parameters, you cannot expect the gradient flow backward from the parameters for the changed gradients.