espnet3.utils.scp_utils.get_class_path
Less than 1 minute
espnet3.utils.scp_utils.get_class_path
espnet3.utils.scp_utils.get_class_path(obj) → str
Return the fully qualified class path for an object.
- Parameters:obj – Any Python object.
- Returns: Dotted import path in the form
<module>.<ClassName>. - Return type: str
Example
>>> class Foo: ...
>>> get_class_path(Foo()).endswith(".Foo")
True