Current error message for Model.layers setter is ambiguous and doesn't explain how to properly handle layers.

Current: “Model.layers attribute is reserved and should not be used. Please use another name.”

Proposed: “Model.layers is a read-only property. Use Model.add() to add new layers.”

Comment From: sonali-kumari1

Hi @nikolasavic3 -

As mentioned by @fchollet in this PR, model.add() is only valid for sequential model. Please refer to the documentation where the add() method is specific to the sequential class. Thanks!

Comment From: nikolasavic3

Hi @sonali-kumari1 I just thought about making the error message more actionable, but the one that is already there seems optimal. Thank you for your help.