Hi ,
I noticed that in most cases in sequential and API structure we pass the shape of input data ( either in input layer or in conv layer. but I don’t see the shapes when we are using classes to create the model. why is that ? isn’t that necessary?
Thanks
Input shape in models
Course Q&A
TensorFlow: Advanced Techniques Specialization
Custom Models, Layers and Loss Functions with TF
Those shapes are necessary. If you are using a predefined model from somewhere, lets suppose tensorflow then at the page where the model resides you should check the input sizes expected, otherwise if you pass in an incorrect shape then the model will throw an error.