X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pytorch.git;a=blobdiff_plain;f=pscan.py;fp=pscan.py;h=891ec5578e118f48d8f5e933d3f4603e1703e9b1;hp=c5478233b5c1156b36a7ac082e2aa8c0db613805;hb=679c210fdde56edfaf2a1859881139e9d6e81664;hpb=24557d01df2fea576a593bc039318e21a06f7ae4 diff --git a/pscan.py b/pscan.py index c547823..891ec55 100755 --- 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):