Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 14, 2024
1 parent 4ce4614 commit f81abda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scvi/external/sysvi/_base_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def set_online_update_hooks(self, hook_first_layer=True):
def _hook_fn_weight(grad):
new_grad = torch.zeros_like(grad)
if self.n_cov > 0:
new_grad[:, -self.n_cov:] = grad[:, -self.n_cov:]
new_grad[:, -self.n_cov :] = grad[:, -self.n_cov :]
return new_grad

def _hook_fn_zero_out(grad):
Expand Down

0 comments on commit f81abda

Please sign in to comment.