Error Compiling Tensorflow From Source - No module named 'keras_applications'

后端 未结 2 424
终归单人心
终归单人心 2021-01-19 07:19

I am attempting to build tensorflow from source with MKL optimizations on an Intel CPU setup. I have followed the official instructions here up until the command bazel

相关标签:
2条回答
  • 2021-01-19 07:21

    This appears to be a problem with Tensorflow 1.10 build. I recommend you check out the r1.9 branch as it builds totally fine. Either the dependency list needs to be updated or Tensorflow will fix this. If you are determined to run the r.1.10 api then run the following in terminal:

    pip install keras_applications==1.0.4 --no-deps
    pip install keras_preprocessing==1.0.2 --no-deps
    pip install h5py==2.8.0
    
    0 讨论(0)
  • 2021-01-19 07:33

    If you're just interested in the release version (git tag will show you all available releases), run git checkout v1.10.1 before the ./configure step. Then you can follow the official instructions without installing additional dependencies.

    Currently, a master branch build will give me the following error in Keras code that worked previously (this is after calling model.fit_generator() from the stand alone version of Keras):

    `steps_per_epoch=None` is only valid for a generator based on the `keras.utils.Sequence` class. Please specify `steps_per_epoch` or use the `keras.utils.Sequence` class.
    

    Builds based on the 1.10.1 release version of TensorFlow don't cause this error.

    0 讨论(0)
提交回复
热议问题