Hi, there is a problem when compile tiny yoloV3 onnx model from here.
here is my script:
import onnx
import numpy as np
import tvm
from tvm import te
import tvm.relay as relay
from tvm.contrib.download import download_testdata
import os
model_path = "model/tiny-yolov3-11.onnx"
onnx_model = onnx.load(model_path)
target = "llvm"
input_name = "input_1"
image_shape = "image_shape"
shape = (1, 3, 224, 224)
shape1 = (1, 2)
shape_dict = {input_name: shape, image_shape: shape1}
mod, params = relay.frontend.from_onnx(onnx_model, shape=shape_dict, freeze_params=True)
mod = relay.transform.DynamicToStatic()(mod)
with tvm.transform.PassContext(opt_level=1):
executor = relay.build(mod, target=target, params=params)
the error message:
Check failed: (pval != nullptr) is false: Cannot allocate memory symbolic tensor shape [?]
It seems about dynamic operators problem, but I have set the specific input shape, anyone knows how to fix this, or some advice, thanks.