Files
keras-team--keras/keras/__init__.py
T
2026-07-13 12:20:15 +08:00

14 lines
446 B
Python

# This file should NEVER be packaged! This is a hack to make "import keras" from
# the base of the repo just import the source files. We'll keep it for compat.
import os # isort: skip
# Add everything in /api/ to the module search path.
__path__.append(os.path.join(os.path.dirname(__file__), "api")) # noqa: F405
from keras.api import * # noqa: F403, E402
from keras.api import __version__ # noqa: E402
# Don't pollute namespace.
del os