Remove deprecated applications adapter code
@@ -9,18 +9,10 @@ from .. import utils
import keras_applications
-if not hasattr(keras_applications, 'get_submodules_from_kwargs'):
- keras_applications.set_keras_submodules(
- backend=backend,
- layers=layers,
- models=models,
- utils=utils)
-
def keras_modules_injection(base_fun):
def wrapper(*args, **kwargs):
- if hasattr(keras_applications, 'get_submodules_from_kwargs'):
kwargs['backend'] = backend
kwargs['layers'] = layers
kwargs['models'] = models
@@ -42,4 +34,3 @@ from .densenet import DenseNet121, DenseNet169, DenseNet201
from .nasnet import NASNetMobile, NASNetLarge
from .resnet import ResNet101, ResNet152
from .resnet_v2 import ResNet50V2, ResNet101V2, ResNet152V2
-from .resnext import ResNeXt50, ResNeXt101
