Lunderberg opened a new pull request, #16836: URL: https://github.com/apache/tvm/pull/16836
Prior to this commit, the `LLVMModuleNode` provided a `"get_func_names"` function that would return the names of functions available within the result of `tvm.build`. However, this utility was not preserved across a round-trip through `mod.export_library` and `tvm.runtime.load_module`. This commit adds a similar `"__get_func_names"` function to a `DSOLibrary`, which returns the symbols available for use in the library. This is exposed in the `Module.keys()` method, mimicking the interface that a Python user would expect. In addition, this is used to improve the error message shown when a library does not contain the requested function. The `difflib` module (from Python's stdlib) is used to find functions that are contained in the module, and have similar names to the one requested. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org