0145cd504585e25b776bef83688d10ff0ca44082,python/tvm/relay/frontend/pytorch.py,,from_pytorch,#Any#Any#Any#,1677

Before Change


    ret = convert_operators(_get_operator_nodes(graph.nodes()),
                            outputs, ret_name)

    if isinstance(ret[0], list):
        ret[0] = _expr.Tuple(ret[0])

    func = tvm.relay.Function(_analysis.free_vars(ret[0]), ret[0])

    return _module.IRModule.from_expr(func), tvm_params

After Change


    params : dict of str to tvm.runtime.NDArray
        Dict of converted parameters stored in tvm.runtime.ndarray format
    
    mod = tvm.IRModule()
    prelude = Prelude(mod)

    convert_map = _get_convert_map(prelude)

    graph = script_module.graph.copy()
    _run_jit_passes(graph)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: apache/incubator-tvm
Commit Name: 0145cd504585e25b776bef83688d10ff0ca44082
Time: 2020-04-12
Author: masahi129@gmail.com
File Name: python/tvm/relay/frontend/pytorch.py
Class Name:
Method Name: from_pytorch


Project Name: apache/incubator-tvm
Commit Name: e63e08febd682f40a536075998a6839bccccd3c6
Time: 2020-04-04
Author: tqchen@users.noreply.github.com
File Name: python/tvm/driver/build_module.py
Class Name:
Method Name: build


Project Name: apache/incubator-mxnet
Commit Name: af26e92c5c7e3053c8e69f0cdf607e22856f3786
Time: 2020-12-02
Author: lausen@amazon.com
File Name: contrib/tvmop/compile.py
Class Name:
Method Name: