Tensorflow, Python - Code verstehen

Devanther

Top Contributor
Hallo,


Ich wollte fragen, was dieser Code macht.

Was ist die parent class? Ist das Layer?
Was macht **kwargs?

Mit super().__init__(**kwargs) rufen wir den Konstruktor der Superklasse (Layer) auf und übergeben **kwargs?
Was ist hier **kwargs?

Wäre gut wenn mir das jemand anhand von diesem Code erklären könnte.
 
  • The constructor (def __init__(...)) takes all of the layer hyperparameters as well as the **kwargs argument
    • The **kwargs argument takes care of all of the hyperparameters which aren't mentioned in the constructor such as, input_shape, trainable and name
Ist das richtig? In eigenen Worten, an meinem Beispiel erklären?
 

Zurück
Oben