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


            args = [nd.array(x, ctx=ctx) for x in ref_input]
        else:
            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]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: reinforceio/tensorforce
Commit Name: 3058bfb87edb7f12bdece2e9e454048df146490a
Time: 2017-07-22
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/models/dqfd_model.py
Class Name: DQFDModel
Method Name: create_tf_operations


Project Name: asyml/texar
Commit Name: f53c38e5ea290616a3be50a99755272a12696070
Time: 2018-01-28
Author: zhiting.hu@petuum.com
File Name: texar/modules/decoders/rnn_decoders.py
Class Name: AttentionRNNDecoder
Method Name: __init__