84fa62617bcd661843d4ae0cbed305cf952d5b80,python/tvm/autotvm/measure/measure_methods.py,,run_through_rpc,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,438

Before Change


            // create empty arrays on the remote device and copy them once.
            // This can avoid some memory issues that make the measurement results unreliable.
            args = [nd.empty(x[0], dtype=x[1], ctx=ctx) for x in build_result.arg_info]
            args = [nd.array(x, ctx=ctx) for x in args]
            ctx.sync()

        costs = time_f(*args).results

After Change


            try:
                random_fill = remote.get_function("tvm.contrib.random.random_fill")
            except AttributeError:
                raise AttributeError("Please make sure USE_RANDOM is ON in the config.cmake "
                                     "on the remote devices")
            args = [nd.empty(x[0], dtype=x[1], ctx=ctx) for x in build_result.arg_info]
            for arg in args:
                random_fill(arg)
            ctx.sync()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: apache/incubator-tvm
Commit Name: 84fa62617bcd661843d4ae0cbed305cf952d5b80
Time: 2020-09-08
Author: zhaowu@apache.org
File Name: python/tvm/autotvm/measure/measure_methods.py
Class Name:
Method Name: run_through_rpc


Project Name: CyberZHG/keras-bert
Commit Name: 792d64bd6f64c4483af5ca1cdb7cbe22c13b5715
Time: 2019-07-12
Author: CyberZHG@gmail.com
File Name: keras_bert/backend.py
Class Name:
Method Name:


Project Name: Featuretools/featuretools
Commit Name: 88429bfe56ad2103df596ae2c2c982eafdad32a3
Time: 2020-05-20
Author: 4307001+thehomebrewnerd@users.noreply.github.com
File Name: featuretools/computational_backends/calculate_feature_matrix.py
Class Name:
Method Name: calculate_feature_matrix