How does a statements like @keras_export('keras.layers.Dropout') and similar before a class declaration work?
Asked
Active
Viewed 162 times
1
Tarique
- 311
- 2
- 8
-
fwiw here is the source for [`keras_export`](https://github.com/tensorflow/tensorflow/blob/dec8e0b11f4f87693b67e125e67dfbc68d26c205/tensorflow/python/util/tf_export.py#L258-L411). It is a decorator. See [this answer](https://stackoverflow.com/a/1594484/5666087) for more info on decorators. – jakub Dec 08 '20 at 19:12