keras-team / keras-core

A multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch.
Apache License 2.0
1.27k stars 115 forks source link

Always save the build config when building a layer #820

Closed mattdangerw closed 1 year ago

mattdangerw commented 1 year ago

This is trying to put us in a more consistent place with respect to implicitly vs explicitly built layers. Explicitly calling build() will now...

The last remaining difference is that implicitly we will attempt the build the layer by calling it symbolically, explicitly we do not. We could revisit that if we wanted, but I think that would be a slightly more complex change.