When should I use Input and when should I use InputLayer? In the source code there is a description, but I am not sure what it means.
InputLayer:
Layer to be used as an entry point into a graph. It can either wrap an existing tensor (pass an
input_tensorargument) or create its a placeholder tensor (pass argumentsinput_shapeorbatch_input_shapeas well asdtype).
Input:
Input()is used to instantiate a Keras tensor. A Keras tensor is a tensor object from the underlying backend (Theano or TensorFlow), which we augment with certain attributes that allow us to build a Keras model just by knowing the inputs and outputs of the model.
I think InputLayer has been deprecated together with the Graph models. I would suggest you use Input, as all the examples on the Keras documentations show.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With