keras/src/layers/pooling/global_max_pooling1d.py/GlobalMaxPooling1D/call
class GlobalMaxPooling1D:    def call(self, inputs):
        steps_axis = 1 if self.data_format == "channels_last" else 2
        return ops.max(inputs, axis=steps_axis, keepdims=self.keepdims)