INNER CODE UNIT · Python

__getattr__

google-deepmind/tapnet · tapnet/__init__.py:28

def __getattr__(name):  # pylint: disable=invalid-name
  if name in _LAZY_SUBMODULES:
    module = importlib.import_module(_LAZY_SUBMODULES[name], __package__)
    globals()[name] = module
    return module
  raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


def __dir__():  # pylint: disable=invalid-name
  return sorted(set(globals()) | set(_LAZY_SUBMODULES))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…