Using VS2017 compiled TVM source to generated tvm.dll ,but python unable to find the interface function defined in TVM

using VS2017 compiled TVM source to generated tvm.dll ,but when we import this library to python.We found that the function name has changed in tvm.dll library. python unable to find the interface function defined in TVM。 The VS compiler has changed the function name. How to solve this problem? or TVM does not support this?

D:\software\python2_64\libs>python Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information.

from ctypes import * dll= CDLL(“tvm.dll”) dll.const() Traceback (most recent call last): File “”, line 1, in File “D:\software\python2_64\lib\ctypes_init_.py”, line 379, in getattr func = self.getitem(name) File “D:\software\python2_64\lib\ctypes_init_.py”, line 384, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: function ‘const’ not found dll.TVMSetStream() 0

Using the dump examined function name in tvm.dll,Most of the function name has been changed,so,python unable to find function Dump of file D:\WORK\vstest\test_import\tvm.dll

File Type: DLL

Section contains the following exports for tvm.dll

00000000 characteristics 5BC7F28F time date stamp Thu Oct 18 10:40:15 2018 0.00 version 1 ordinal base 794 number of functions 794 number of names

ordinal hint RVA name

  1    0 020DC9C4 ?$TSS0@?1??Mutate@IRMutator@ir@tvm@@UEAA?AUExpr@HalideIR@@U56@@Z@4HA = ?$TSS0@?1??Mutate@IRMutator@ir@tvm@@UEAA?AUExpr@HalideIR@@U56@@Z@4HA (int `public: virtual struct HalideIR::Expr __cdecl tvm::ir::IRMutator::Mutate(struct HalideIR::Expr)'::`2'::$TSS0)
  2    1 020DC9D4 ?$TSS0@?1??Mutate@IRMutator@ir@tvm@@UEAA?AUStmt@Internal@HalideIR@@U567@@Z@4HA = ?$TSS0@?1??Mutate@IRMutator@ir@tvm@@UEAA?AUStmt@Internal@HalideIR@@U567@@Z@4HA (int `public: virtual struct HalideIR::Internal::Stmt __cdecl tvm::ir::IRMutator::Mutate(struct HalideIR::Internal::Stmt)'::`2'::$TSS0)

789 314 00006D07 TVMNodeTypeKey2Index = @ILT+23810(TVMNodeTypeKey2Index) 790 315 00050763 TVMSetStream = @ILT+325470(TVMSetStream) 791 316 0003DD11 TVMStreamCreate = @ILT+249100(TVMStreamCreate) 792 317 00011C20 TVMStreamFree = @ILT+68635(TVMStreamFree) 793 318 00037105 TVMStreamStreamSynchronize = @ILT+221440(TVMStreamStreamSynchronize) 794 319 000113B5 TVMSynchronize = @ILT+66480(TVMSynchronize

why are you directly loading dll from python?