Files
pytorch-ts/pts/core/_base.py
T
Vahe HakobyanandKashif Rasul 1b123ef152 Model serialization (#6)
* wip: serialization ran successfully

* wip: deserialization ran successfully
2020-03-12 11:32:46 +01:00

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__}"