I am learning this TensorFlow-2.x-Tutorials where it use layers.MaxPooling2D
. The autocompletion also hint layers.MaxPool2D
, so I search for the difference between them.
Refer to this api_docs, I find their entire name tf.compat.v1.layers.MaxPooling2D
and tf.keras.layers.MaxPool2D
, which have almost same arguments, can I just consider layers.MaxPooling2D
= layers.MaxPool2D
, but the former is to tf1.x, the latter is to tf2.x?
What's more, I also find tf.keras.layers.GlobalMaxPool1D
(Global max pooling operation for 1D temporal data) and tf.keras.layers.GlobalAveragePooling1D
(Global average pooling operation for temporal data), these two have exact the same arguments, why is the syntax of function name different?