mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-15 11:25:33 +08:00
* wip: serialization ran successfully * wip: deserialization ran successfully
15 lines
305 B
Python
15 lines
305 B
Python
def fqname_for(cls: type) -> str:
|
|
"""
|
|
Returns the fully qualified name of ``cls``.
|
|
|
|
Parameters
|
|
----------
|
|
cls
|
|
The class we are interested in.
|
|
|
|
Returns
|
|
-------
|
|
str
|
|
The fully qualified name of ``cls``.
|
|
"""
|
|
return f"{cls.__module__}.{cls.__qualname__}" |