/// <summary>2次元平均値プーリング</summary>
        public static VariableNode AveragePooling2D(VariableNode x, int stride)
        {
            Function function =
                new Functions.Connection2D.AveragePooling(stride);

            VariableNode y = Apply(function, x)[0];

            return(y);
        }
        /// <summary>2次元平均値プーリング</summary>
        public static Tensor AveragePooling2D(Tensor x, int stride)
        {
            Function function =
                new Functions.Connection2D.AveragePooling(stride);

            Tensor y = new Tensor(function.OutputShapes(x.Shape)[0]);

            function.Execute(new Tensor[] { x }, new Tensor[] { y });

            return(y);
        }