Ejemplo n.º 1
0
        /// <summary>1次元平均値プーリング</summary>
        public static VariableNode AveragePooling1D(VariableNode x, int stride)
        {
            Function function =
                new Functions.Connection1D.AveragePooling(stride);

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

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

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

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

            return(y);
        }