6b5694f0f2941fb9e8fa510011e3caeb03056b4e,tutorials/get_started/relay_quick_start.py,,,#,62

Before Change


// load the module back.
loaded_json = open(temp.relpath("deploy_graph.json")).read()
loaded_lib = tvm.runtime.load_module(path_lib)
loaded_params = bytearray(open(temp.relpath("deploy_param.params"), "rb").read())
input_data = tvm.nd.array(np.random.uniform(size=data_shape).astype("float32"))

module = graph_runtime.create(loaded_json, loaded_lib, ctx)
module.load_params(loaded_params)

After Change


ctx = tvm.gpu()
data = np.random.uniform(-1, 1, size=data_shape).astype("float32")
// create module
module = graph_runtime.GraphModule(lib["default"](ctx))
// set input and parameters
module.set_input("data", data)
// run
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: apache/incubator-tvm
Commit Name: 6b5694f0f2941fb9e8fa510011e3caeb03056b4e
Time: 2020-09-16
Author: tqchen@users.noreply.github.com
File Name: tutorials/get_started/relay_quick_start.py
Class Name:
Method Name:


Project Name: apache/incubator-tvm
Commit Name: 6b5694f0f2941fb9e8fa510011e3caeb03056b4e
Time: 2020-09-16
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_target_codegen_blob.py
Class Name:
Method Name: test_synthetic


Project Name: brilee/MuGo
Commit Name: a74090f72c022d1a6dd6e13a111faa8c571a3726
Time: 2016-06-28
Author: brian.kihoon.lee@gmail.com
File Name: go.py
Class Name:
Method Name: flood_fill


Project Name: brilee/MuGo
Commit Name: a74090f72c022d1a6dd6e13a111faa8c571a3726
Time: 2016-06-28
Author: brian.kihoon.lee@gmail.com
File Name: go.py
Class Name:
Method Name: capture_stones