cerndb / dist-keras

Distributed Deep Learning, with a focus on distributed training, using Keras and Apache Spark.
http://joerihermans.com/work/distributed-keras/
GNU General Public License v3.0
623 stars 169 forks source link

The Session graph is empty in machine learning pipeline example #60

Open anishsharma opened 6 years ago

anishsharma commented 6 years ago

Hi I am facing the below error .

RuntimeError: The Session graph is empty. Add operations to the graph before calling run() in the below files.

File "/home/test/dist-keras-021/distkeras/predictors.py", line 23, in __init__ self.model = serialize_keras_model(keras_model) File "/home/test/dist-keras-021/distkeras/utils.py", line 82, in serialize_keras_model print("model.get_weights()=",model.get_weights())

I tried to print the weights but interestingly it is giving exception at the same statement. It does print the weights where we created the model. I am trying an example of yours for machine learning production pipeline with spark streaming.