projects
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24557d0
)
Update.
author
François Fleuret
<francois@fleuret.org>
Mon, 18 Dec 2023 04:14:35 +0000
(
05:14
+0100)
committer
François Fleuret
<francois@fleuret.org>
Mon, 18 Dec 2023 04:14:35 +0000
(
05:14
+0100)
pscan.py
patch
|
blob
|
history
diff --git
a/pscan.py
b/pscan.py
index
c547823
..
891ec55
100755
(executable)
--- a/
pscan.py
+++ b/
pscan.py
@@
-55,8
+55,8
@@
class PScan(torch.autograd.Function):
#
# returns Y of same shape as X, with
#
- # Y[:,
t] = A[:,0] * Y_init + X[:,
0] if t == 0
- # = A[:,
t] * Y[:,t-1] + X[:,
t] otherwise
+ # Y[:,
t] = A[:, 0] * Y_init + X[:,
0] if t == 0
+ # = A[:,
t] * Y[:, t-1] + X[:,
t] otherwise
@staticmethod
def forward(ctx, A, X, Y_init):