jacinle.utils.imp#
Functions
|
Convert a string to a module-class tuple. |
|
Load a class by its classname (including module). |
|
Import a module by its module name (e.g., jacinle.utils.imp). |
|
Import a module by its filename (e.g., /Users/jiayuan/Projects/Jacinle/jacinle/utils/imp.py). |
|
Load a source file as a module. |
|
Get all variables in a module as a dictionary. |
Convert a module-class tuple to a string. |
Functions
- load_class(classname, exit_on_error=True)[source]#
Load a class by its classname (including module).
- load_module_filename(module_filename)[source]#
Import a module by its filename (e.g., /Users/jiayuan/Projects/Jacinle/jacinle/utils/imp.py).