Пример #1
0
        /// <summary>1次元最大値プーリング</summary>
        public static VariableNode MaxPooling1D(VariableNode x, int stride)
        {
            Function function =
                new Functions.Connection1D.MaxPooling(stride);

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

            return(y);
        }
Пример #2
0
        /// <summary>1次元最大値プーリング</summary>
        public static Tensor MaxPooling1D(Tensor x, int stride)
        {
            Function function =
                new Functions.Connection1D.MaxPooling(stride);

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

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

            return(y);
        }