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

Method import_module

python/tvm_ffi/module.py:279–288  ·  view source on GitHub ↗

Add module to the import list of current one. Parameters ---------- module The other module.

(self, module: Module)

Source from the content-addressed store, hash-verified

277 return doc_str if doc_str else None
278
279 def import_module(self, module: Module) -> None:
280 """Add module to the import list of current one.
281
282 Parameters
283 ----------
284 module
285 The other module.
286
287 """
288 _ffi_api.ModuleImportModule(self, module)
289
290 def __getitem__(self, name: str) -> core.Function:
291 """Return function by name using item access (module["func"])."""

Callers 2

__main__Function · 0.80
_import_clsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected