Does Any one got “AttributeError: 'str' object has no attribute 'decode' ” , while Loading a Keras Saved Model

后端 未结 5 1891
轮回少年
轮回少年 2021-01-01 17:01

After Training, I saved Both Keras whole Model and Only Weights using

model.save_weights(MODEL_WEIGHTS) and model.save(MODEL_NAME)

Models

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 17:46

    saved using TF format file and not h5py: save_format='tf'. In my case:

    model.save_weights("NMT_model_weight.tf",save_format='tf')
    

提交回复
热议问题