1d04c0dd87debec1883e78252d396db93b383a2b,thinc/layers/with_list2ragged.py,,forward,#,20

Before Change


    layer = model.layers[0]
    pad = model.get_attr("pad")
    lengths = layer.ops.asarray([len(seq) for seq in seqs_in])
    X, bp_layer = layer.begin_update(layer.ops.flatten(seqs_in, pad=pad))

    def backprop(d_seqs_out: OutputType) -> InputType:
        d_X = bp_layer(layer.ops.flatten(d_seqs_out, pad=pad))

After Change


    layer = model.layers[0]
    pad = model.get_attr("pad")
    lengths = layer.ops.asarray([len(seq) for seq in Xs])
    Xf = layer.ops.flatten(Xs, pad=pad)
    Yf, get_dXf = layer(Xf, is_train)

    def backprop(dYs: OutputType) -> InputType:
        dYf = layer.ops.flatten(dXs, pad=pad)
        dXf = get_dXf(dYf)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 1d04c0dd87debec1883e78252d396db93b383a2b
Time: 2020-01-04
Author: honnibal+gh@gmail.com
File Name: thinc/layers/with_list2ragged.py
Class Name:
Method Name: forward


Project Name: EpistasisLab/tpot
Commit Name: 92f0b4f4943b953b4b57d8f1d851e6b8e63441e7
Time: 2018-04-19
Author: weixuanf@pennmedicine.upenn.edu
File Name: tpot/builtins/dataset_selector.py
Class Name: DatasetSelector
Method Name: fit


Project Name: SheffieldML/GPy
Commit Name: 8b621a409cd07d0f5610a2648b6413322c39a822
Time: 2017-08-10
Author: akash.dhaka@aalto.fi
File Name: GPy/likelihoods/likelihood.py
Class Name: Likelihood
Method Name: ep_gradients


Project Name: interactiveaudiolab/nussl
Commit Name: 9f838d8b10216ec4a9cb73d833a8ec1988733671
Time: 2019-07-14
Author: prem@u.northwestern.edu
File Name: nussl/separation/clustering/clustering_separation_base.py
Class Name: ClusteringSeparationBase
Method Name: cluster_features