2shou
2shou

Reputation: 145

AttributeError: 'module' object has no attribute 'image_data_format'

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?

Upvotes: 2

Views: 1677

Answers (1)

2shou
2shou

Reputation: 145

update keras to 2.0.2 and it fixed.

Upvotes: 2

Related Questions