philtabor / Youtube-Code-Repository

Repository for most of the code from my YouTube channel
861 stars 480 forks source link

Error in Saving models #17

Open suryansh55 opened 4 years ago

suryansh55 commented 4 years ago

Hi I was trying to save model (lunar lander youtube tutorial) but I'm not able to I tried adding agent.save_model() in file main_tf2_dqn_lunar_lander.py but then it gives an error as below :

Weights for model sequential have not yet been created. Weights are created when the Model is first called on inputs or build() is called with an input_shape.