C1W3 Lab_3: What is the role of super().build(input_shape) statement inside the build function?

Hello,

What is the role of calling the super().build(input_shape) method in the last line of the definition of the build function inside the SimpleDense class in Week 3’s Lab 3? There is no explanation given in the video. When defining the SimpleDense class without activation in Lab 2, the aforementioned call was not included. I also tried to run Lab 3 after commenting out this statement, and it seems to have no effect on the outcome of the training.

Best,
Istvan

Hi there,

According to what I have read in tensorflow about layer class there is no need for that line to be there, but even if its there it sets the input shape but the method implementation is left to be implemented from the user.