2

I have tried to run my first demo using keras with tensorflow backend but failed:

Traceback (most recent call last): File "mnist_cnn.py", line 26, in <module> if K.image_data_format() == 'channels_first': AttributeError: 'module' object has no attribute 'image_data_format'

keras version: 1.2.1 tensorflow version: 1.0.1

How to fix?

1 Answer 1

2

update keras to 2.0.2 and it fixed.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.