Beispiel #1
0
        /// <summary>3次元平均値プーリング</summary>
        public static VariableNode AveragePooling3D(VariableNode x, int stride)
        {
            Function function =
                new Functions.Connection3D.AveragePooling(stride);

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

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

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

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

            return(y);
        }