Contents:
returns a list of all layers in the input model, including layers in any nested models therein layers are listed in forward-pass order