Created
August 6, 2020 22:16
-
-
Save thunderInfy/48c6d851c6a8c002664be13078f5d517 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # update resnetk | |
| for θ_k, θ_q in zip(resnetk.parameters(), resnetq.parameters()): | |
| θ_k.data.copy_(momentum*θ_k.data + θ_q.data*(1.0 - momentum)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment