__init__.py 389 Bytes
Newer Older
maming's avatar
maming committed
1
2
3
4
5
6
7
8
9
10
11
12
13
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.

if K.backend() == 'theano':
    from .theano_backend import *
elif K.backend() == 'tensorflow':
    from .tensorflow_backend import *
elif K.backend() == 'cntk':
    from .cntk_backend import *