MCPcopy Create free account
hub / github.com/apache/tvm-ffi / GetFunctionMetadata

Function GetFunctionMetadata

include/tvm/ffi/extra/module.h:101–101  ·  view source on GitHub ↗

Rationale: We separate the docstring from the metadata since docstrings can be unstructured and sometimes large, while metadata can be focused on storing structured information. ! * \brief Get the metadata of the function, if available. * \param name The name of the function. * \return The metadata as JSON string if available, nullopt otherwise. * * \code{.cpp} * Module mod = Mod

Source from the content-addressed store, hash-verified

99 * \sa GetFunctionDoc, TVM_FFI_DLL_EXPORT_TYPED_FUNC
100 */
101 virtual Optional<String> GetFunctionMetadata(const String& name) { return std::nullopt; }
102 /*!
103 * \brief Write the current module to file with given format (for further compilation).
104 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected