b31539f62e
A solution for https://github.com/williamFalcon/pytorch-lightning/issues/142. Since hasattr "calls getattr(object, name) and to see whether it raises an AttributeError or not", I replaced it with a single call to getattr. See also https://stackoverflow.com/questions/24971061/python-hasattr-vs-getattr |
||
---|---|---|
.. | ||
__init__.py | ||
decorators.py | ||
grads.py | ||
hooks.py | ||
memory.py | ||
model_saving.py | ||
root_module.py |