from tvm.driver import tvmc
model = tvmc.load('resnet50-v2-7.onnx')
package = tvmc.compile(model, target="llvm")
from tvm.driver import tvmc
model = tvmc.load('sign.onnx') #Step 1: Load
package = tvmc.compile(model, target="llvm") #Step 2: Compile
result = tvmc.run(package, device="cpu") #Step 3: Run
print("Time :", timeit.default_timer() - starttime)
import onnx
import tvm
from tvm import relay
onnx_model = onnx.load("resnet50-v2-7.onnx")
mod, params = relay.frontend.from_onnx(onnx_model, freeze_params=True)
print(relay.transform.DynamicToStatic()(mod))