hello, i am sorry to disturb you again. i have the same question:
I set a masks=[ ] to save which weight equal to zero and don’t change these weights.

second, i set them to variable which needn’t grad

mask2.png926×61 2.69 KB

my question is how to apply masks to prevent autograd change these weights