MCPcopy Create free account
hub / github.com/apache/tvm / download_model

Function download_model

tests/python/nightly/test_nnapi/test_network.py:63–69  ·  view source on GitHub ↗
(model_url, name)

Source from the content-addressed store, hash-verified

61
62def get_network(name, dtype, input_shape=(1, 3, 224, 224)):
63 def download_model(model_url, name):
64 model_path = download_testdata(model_url, name + ".onnx", module="onnx")
65 onnx_model = onnx.load(model_path)
66
67 shape_dict = {"x": input_shape}
68 mod = from_onnx(onnx_model, shape_dict)
69 return mod
70
71 def create_model(name):
72 if "vgg11" == name:

Callers 1

create_modelFunction · 0.85

Calls 3

download_testdataFunction · 0.90
from_onnxFunction · 0.90
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…