9fcde21313fd947d379c3c96d114f080676c9308,python/tvm/contrib/graph_runtime.py,,create,#Any#Any#Any#,27

Before Change


    graph_module : GraphModule
        Runtime graph module that can be used to execute the graph.
    
    if not isinstance(graph_json_str, string_types):
        try:
            graph_json_str = graph_json_str._tvm_graph_json()
        except AttributeError:
            raise ValueError("Type %s is not supported" % type(graph_json_str))

    ctx, num_rpc_ctx, device_type_id = get_device_ctx(libmod, ctx)

    if num_rpc_ctx == len(ctx):
        fcreate = ctx[0]._rpc_sess.get_function("tvm.graph_runtime.create")

After Change


    graph_module : GraphModule
        Runtime graph module that can be used to execute the graph.
    
    assert isinstance(graph_json_str, string_types)

    ctx, num_rpc_ctx, device_type_id = get_device_ctx(libmod, ctx)

    if num_rpc_ctx == len(ctx):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: apache/incubator-tvm
Commit Name: 9fcde21313fd947d379c3c96d114f080676c9308
Time: 2020-07-14
Author: zhaowu@apache.org
File Name: python/tvm/contrib/graph_runtime.py
Class Name:
Method Name: create


Project Name: apache/incubator-tvm
Commit Name: 9fcde21313fd947d379c3c96d114f080676c9308
Time: 2020-07-14
Author: zhaowu@apache.org
File Name: python/tvm/contrib/debugger/debug_runtime.py
Class Name:
Method Name: create


Project Name: apache/incubator-mxnet
Commit Name: d5fdcbf3bae3ea85cb89394147db4b1da0105fb4
Time: 2020-08-07
Author: linhaibin.eric@gmail.com
File Name: python/mxnet/gluon/trainer.py
Class Name: Trainer
Method Name: __init__


Project Name: snipsco/snips-nlu
Commit Name: a462d598913833016411774a4d4f67305a363e38
Time: 2017-02-24
Author: clement.doumouro@snips.ai
File Name: custom_intent_parser/entity_extractor/regex_entity_extractor.py
Class Name: RegexEntityExtractor
Method Name: __init__