Skip to content

Commit fd7819c

Browse files
author
Frederik Rahbaek Warburg
committed
updated readme
1 parent 5509766 commit fd7819c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ If you want to cite the framework feel free to use this (but only if you loved i
125125
```bibtex
126126
@article{software:stochman,
127127
title={StochMan},
128-
author={Nicki S. Detlefsen and Alison Pouplin and Cilie W. Feldager and Cong Geng and Dimitris Kalatzis and Helene Hauschultz and Miguel González Duque and Søren Hauberg},
128+
author={Nicki S. Detlefsen and Alison Pouplin and Cilie W. Feldager and Cong Geng and Dimitris Kalatzis and Helene Hauschultz and Miguel González Duque and Frederik Warburg and Marco Miani and Søren Hauberg},
129129
journal={GitHub. Note: https://github.com/MachineLearningLifeScience/stochman/},
130130
year={2021}
131131
}

stochman/nnj.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def _jacobian_wrt_weight_sandwich_diag_to_diag(self, x: Tensor, val: Tensor, tmp
712712
output_tmp[i, :] = output_tmp_single_batch
713713

714714
if self.bias is not None:
715-
bias_term = tmp_diag.reshape(b, c2, h2*w2)
715+
bias_term = tmp_diag.reshape(b, c2, h2 * w2)
716716
bias_term = torch.sum(bias_term, 2)
717717
output_tmp = torch.cat([output_tmp, bias_term], dim=1)
718718

@@ -1194,4 +1194,4 @@ def forward(self, x: Tensor) -> Tensor:
11941194

11951195
def _jacobian(self, x: Tensor, val: Tensor) -> Tensor:
11961196
jac = 0.5 / val
1197-
return jac
1197+
return jac

0 commit comments

Comments
 (0)