TVMBackendGetFuncFromEnv not supported in standalone_crt

Hi,

I created a Relay graph which includes a NMS operator using below API, and I hope to get a compiled module which could be run with static C bundle_deploy and standalone_crt.

I’m working on a pure C-based project, and C API and static linking would definitely be preferable.

relay.vision.non_max_suppression()

However it seems this relay operator will eventually be lowered to tvm.contrib.sort.argsort_nms which is registered in src/runtime/contrib/sort/sort.cc, and the compiled system library (model_syslib.o) will call TVMBackendGetFuncFromEnv to find this funtion.

Unfortunately it seems standalone_crt didn’t implement this TVMBackendGetFuncFromEnv API, and sort.cc is not included either. Do I have a way to get around it?

Is it possible that this NMS operator can be lowered to other implementation which doesn’t need TVMBackendGetFuncFromEnv?

Or I’ll have to implement TVMBackendGetFuncFromEnv myself in standalone_crt, and somehow include sort.cc into my runtime library?

I’m quite new to TVM and please forgive me if my questions are not very clear.

Thank you very much.