using System; using System.Collections.Generic; using System.Text; using Tensorflow.Keras.ArgsDefinition; using Tensorflow.Common.Types; namespace Tensorflow.Keras.Layers { public class GlobalMaxPooling2D : GlobalPooling2D { public GlobalMaxPooling2D(Pooling2DArgs args) : base(args) { } <<<<<<< HEAD <<<<<<< HEAD protected override Tensors Call(Tensors inputs, Tensors state = null, bool? training = null, IOptionalArgs? optional_args = null) ======= protected override Tensors Call(Tensors inputs, Tensor mask = null, bool? training = null, Tensors initial_state = null, Tensors constants = null) >>>>>>> master ======= protected override Tensors Call(Tensors inputs, Tensors state = null, bool? training = null, IOptionalArgs? optional_args = null) >>>>>>> 90a65d7d98b92f26574ac32392ed802a57d4d2c8 { if (data_format == "channels_last") return math_ops.reduce_max(inputs, (1, 2), false); else return math_ops.reduce_max(inputs, (2, 3), false); } } }