Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 1, 2020
1 parent f3a3d1a commit 98b32f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ensae_teaching_dl/examples/keras_mnist.py
Expand Up @@ -56,12 +56,13 @@ def keras_build_mnist_model(nb_classes, fLOG=None):
@return the model
"""
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import (
Dense, Dropout, Activation, Flatten,
Convolution2D, MaxPooling2D)
from keras import backend as K

try:
imgord = K.common.image_dim_ordering()
imgord = K.common.image_dim_ordering() # pylint: disable=E1101
except Exception: # pylint: disable=W0703
# older version
imgord = K.image_dim_ordering() # pylint: disable=E1101
Expand Down

0 comments on commit 98b32f1

Please sign in to comment.