[Feature Request] Support pytree (nested list) in optimizer build
#18443
Labels
stat:awaiting keras-eng
Awaiting response from Keras engineer
type:feature
The user is asking for a new feature.
The latter case is very common, when one use functional programming paradigm, as
model.variables
is a list of tensors (similar tob1
,b2
above), and there could be some other variables outside the model (similar tow
above) that the user also want to optimize together. A full pytree support inoptimizer.build
would be fantastic to use.The text was updated successfully, but these errors were encountered: