pytorch/torch/autograd/_functions/replace.vim
Adam Paszke 20aa5b066f Convert some of the functions to new format
Also, fix a lot of issues that appeared after the previous commits.
2017-05-01 16:44:56 -04:00

4 lines
154 B
VimL

%s/self/ctx/g
%s/\s\+def forward/ @staticmethod\r def forward/g
%s/\s\+def backward/ @staticmethod\r @once_differentiable\r def backward/g