Commit 36c4bf11 authored by Allen Lavoie's avatar Allen Lavoie Committed by TensorFlower Gardener
Browse files

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
parent 5a78e98e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment