MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / _get_module

Method _get_module

src/diffusers/utils/import_utils.py:716–723  ·  view source on GitHub ↗
(self, module_name: str)

Source from the content-addressed store, hash-verified

714 return value
715
716 def _get_module(self, module_name: str):
717 try:
718 return importlib.import_module("." + module_name, self.__name__)
719 except Exception as e:
720 raise RuntimeError(
721 f"Failed to import {self.__name__}.{module_name} because of the following error (look up to see its"
722 f" traceback):\n{e}"
723 ) from e
724
725 def __reduce__(self):
726 return (self.__class__, (self._name, self.__file__, self._import_structure))

Callers 1

__getattr__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected