Thanks @ai_curious I read your other post discussing difference between functional and sequential APIs (very helpful btw), so it seems the difference of using double parens versus single comes down to the difference in syntax where functional APIs treat whatever you pass into the trailing paren as the input by default. What made it confusing was that it wasn’t mentioned in the documentation of the different methods (i.e. Dense, MaxPool, etc. ) Also, I don’t see where init() is listed in the “Inherit From:” Global Average Max Pool 2D layer links and even if it was I’m not sure I understand how init()
is related to the input. Not an experienced programmer but just looked up what init()
is and it seems it means it’s used to initialize objects of a class but I’m kind of lost after that. Does initialize objects of a class mean that it assigns values to the object? If yes, then I guess we’re just suppose to know that passing x
to the trailing paren means only the input by definition of the syntax and that init() is “under the hood” function that does it for you.
I Thank you any help with additional clarification.