neuralib.util.unstable.unstable
- neuralib.util.unstable.unstable(doc=True, runtime=True, mark_all=False, method='__init__')[source]
A decorator that mark class/function unstable.
- Parameters:
doc (bool) – Add unstable message in function/class document.
runtime (bool) – Add runtime warning when invoking function/initialization.
mark_all (bool) – Mark all public methods when decorate on a class, If False, then only mark
method_namemethod (str) – Name of method in class to be marked. defaults to ‘__init__’
- Return type:
Callable[[T], T]