Youtube-Code-Repository icon indicating copy to clipboard operation
Youtube-Code-Repository copied to clipboard

Error in Saving models

Open suryansh55 opened this issue 4 years ago • 0 comments

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.

suryansh55 avatar Jun 21 '20 16:06 suryansh55