9cde027af9e8d8ea11751e960e670b2406a36018,theano/misc/check_blas.py,,execute,#Any#Any#Any#Any#Any#Any#Any#,21

Before Change



    f()  // Ignore first function call to get representative time.
    if execute:
        sync = (hasattr(theano, "sandbox") and
                hasattr(theano.sandbox, "cuda") and
                isinstance(c, theano.sandbox.cuda.CudaNdarraySharedVariable))
        sync2 = (hasattr(theano, "gpuarray") and

After Change


        for i in range(iters):
            f()
        if sync:
            c.get_value(borrow=True, return_internal_type=True).sync()
        t1 = time.time()
    return t1 - t0, impl
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: Theano/Theano
Commit Name: 9cde027af9e8d8ea11751e960e670b2406a36018
Time: 2017-04-03
Author: abergeron@gmail.com
File Name: theano/misc/check_blas.py
Class Name:
Method Name: execute


Project Name: tensorflow/models
Commit Name: 478492744e1b7c40e610856cd23e0507c87c3836
Time: 2020-08-19
Author: gardener@tensorflow.org
File Name: official/core/train_utils.py
Class Name:
Method Name: write_summary


Project Name: tensorflow/models
Commit Name: 40e124320636797487b4db476511bf7147616a93
Time: 2020-08-19
Author: gardener@tensorflow.org
File Name: official/core/train_utils.py
Class Name:
Method Name: write_summary