From: François Fleuret Date: Tue, 24 Sep 2024 10:20:43 +0000 (+0200) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=acec60ad56f75cff89f94b7957ba35b244132e44;p=culture.git Update. --- diff --git a/main.py b/main.py index 09e3c59..b2b0492 100755 --- a/main.py +++ b/main.py @@ -877,7 +877,7 @@ def inject_plasticity(model, proba): with torch.no_grad(): for p, q in zip(model.parameters(), dummy.parameters()): mask = (torch.rand(p.size()) <= proba).long() - p[...] = (1 - mask) * p + mmask * q + p[...] = (1 - mask) * p + mask * q ######################################################################