Tweak tf.keras.Model layer collection to auto-flatten non-Layer container types.
This makes model.layers consistent between "model.l = Dense(2)" and "model.l = [Dense(2)]", and makes introspection slightly more pleasant (non-empty but useless automatically generated container types will be omitted). PiperOrigin-RevId: 205154485
Loading
Please sign in to comment