Hi, and thank you very much for your response. I forgot to mention this but I have tried something similar (Although I used torch.zeros rather then zeros_like). My impression is that L1 is not exactly what I need as it penalizes by the value (and not a binary penalty), so the result is simply small values. Did I get something wrong?