Reputation: 1
Code:
from keras import backend as K
K.set_image_dim_ordering('tf')
Error:
AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'
Upvotes: 0
Views: 4773
Reputation: 444
You are importing backend
from keras
as k
. Your code should read: keras.k
Or you should import the module like this:
from keras import backend
Upvotes: 1