91b0d220c8e816766fd4565e1d2f5115d3afbefe,gpytorch/utils/cholesky.py,,batch_potrs,#Any#Any#,19

Before Change


    potrs_list = []
    for i in range(mat.size(0)):
        potrs_list.append(torch.potrs(mat[i], chol[i]).unsqueeze(0))
    return torch.cat(potrs_list, 0)


def tridiag_batch_potrf(trid, upper=False):
    

After Change


    
    
    potrs_list = []
    potrs_list = [
        torch.potrs(sub_mat, sub_chol)
        for sub_mat, sub_chol in zip(mat.view(-1, *mat.shape[-2:]), chol.view(-1, *chol.shape[-2:]))
    ]
    res = torch.cat(potrs_list, 0)
    return res.view_as(mat)


def tridiag_batch_potrf(trid, upper=False):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 8

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 91b0d220c8e816766fd4565e1d2f5115d3afbefe
Time: 2018-10-12
Author: gpleiss@gmail.com
File Name: gpytorch/utils/cholesky.py
Class Name:
Method Name: batch_potrs


Project Name: matplotlib/matplotlib
Commit Name: 5591ce6fa3cc3e79fa6cee8c75cec87db59a8721
Time: 2019-02-23
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: get_minorticklocs


Project Name: matplotlib/matplotlib
Commit Name: 97eceb118ed35175167af15fbc2577d360f5351f
Time: 2019-02-16
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: get_minorticklocs


Project Name: evilsocket/pwnagotchi
Commit Name: 90b0e10e81a5a0e03753715ec1034278bdd5f600
Time: 2019-10-07
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/default/api.py
Class Name:
Method Name: parse_pcap


Project Name: Theano/Theano
Commit Name: b690578d54cd923323d97238352d8dfeefbc860e
Time: 2017-01-30
Author: gvtulder@gmail.com
File Name: theano/tensor/nnet/bn.py
Class Name:
Method Name: local_abstract_batch_norm_train_grad


Project Name: reinforceio/tensorforce
Commit Name: ee950b503eeed5aca3747a4bcf2a40f624b743a0
Time: 2019-01-21
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/synchronization.py
Class Name: Synchronization
Method Name: tf_step