espnet3.parallel.base_runner.get_full_cls_path_from_instance
Less than 1 minute
espnet3.parallel.base_runner.get_full_cls_path_from_instance
espnet3.parallel.base_runner.get_full_cls_path_from_instance(obj)
Return the full import path for an instance’s class.
- Parameters:obj – Any Python object.
- Returns: Dotted class path in the form
<module>.<qualname>. - Return type: str
Notes
- When running under
__main__, the module name is rewritten to the current script filename so that workers can import it by module path.
Example
>>> class Foo: ...
>>> get_full_class_path_from_instance(Foo()).endswith("Foo")
True