what’s the meaning of dummy pass
Closed this issue · 2 comments
thx you so much for your brilliant repo, just have a question about your outer-loop updates, I get confused about replacing sum_task_gradients with dummy gradients. The FOMAML update is based on the sum_task_gradients, right? I don't get the meaning of dummy pass, can you kindly provide some detail about that?
Thx again
thx you so much for your brilliant repo, just have a question about your outer-loop updates, I get confused about replacing sum_task_gradients with dummy gradients. The FOMAML update is based on the sum_task_gradients, right? I don't get the meaning of dummy pass, can you kindly provide some detail about that?
Thx again
Yes, you are right. The FOMAMAL update is based on the sum_task_gradients. The dummy input is used to rebuild the computation graph, thus when backward is carried out, hook functions will be activated to replace dummy gradients with true sum_task_gradients.