1e128aa0ee1bf41b7b8970ea0177b627585a72a8,chainer/functions/rnn/lstm.py,LSTMGrad,backward,#LSTMGrad#Any#Any#,186

Before Change


        gx = xp.empty_like(x)
        gc_next = xp.empty_like(c)
        ggc = xp.empty_like(ggc_prev)
        ggh = xp.empty_like(gh)

        gc_prev[batch:] = 0
        gc_next[batch:] = 0
        ggc[batch:] = ggc_prev[batch:]

After Change


        gh_is_none = gh is None
        if gc_is_none:
            gc = 0
        if gh_is_none:
            gh = 0
        if ggc_prev is None:
            ggc_prev = 0

        gc_prev = xp.empty_like(c_prev)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chainer/chainer
Commit Name: 1e128aa0ee1bf41b7b8970ea0177b627585a72a8
Time: 2019-08-08
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: chainer/functions/rnn/lstm.py
Class Name: LSTMGrad
Method Name: backward


Project Name: scikit-image/scikit-image
Commit Name: b8a5e5db6c2c0ff9540d84c11c05b21fc6023ae6
Time: 2020-05-04
Author: rfezzani@gmail.com
File Name: skimage/color/colorconv.py
Class Name:
Method Name: rgba2rgb


Project Name: alexandrebarachant/pyRiemann
Commit Name: d8849e4e2381728efd6bd1c57e48b544b15e4778
Time: 2020-05-09
Author: sylvain.chevallier@uvsq.fr
File Name: examples/SSVEP/plot_classify_ssvep_mdm.py
Class Name:
Method Name: