Files
keras-contrib/keras_contrib/backend/__init__.py
T
2017-01-25 13:01:33 +05:30

15 lines
359 B
Python

from keras import backend as K
# We import all keras backend functions here,
# so that files in this repo can import both
# core and contrib backend functions with a
# single import statement.
from keras.backend import *
if K.backend() == 'theano':
from .theano_backend import *
elif K.backend() == 'tensorflow':
from .tensorflow_backend import *