Created by: guoshengCS
Add Layer.init in Input.init .
otherwise, if model._inputs
is a single Input, it is an instance of Layer and model.parameters
would call model._inputs._parameters
, which would call Input.__getattr__
with infinite recursion depth since Input has no _parameters
attribute.