Ejemplo n.º 1
0
        /// <summary>3次元カーネル積</summary>
        public static VariableNode KernelProduct3D(VariableNode x, VariableNode y, int kwidth, int kheight, int kdepth, int stride)
        {
            Function function =
                new Functions.Connection3D.KernelProduct(x.Shape, y.Shape, kwidth, kheight, kdepth, stride);

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

            return(w);
        }
Ejemplo n.º 2
0
        /// <summary>3次元カーネル積</summary>
        public static Tensor KernelProduct3D(Tensor x, Tensor y, int kwidth, int kheight, int kdepth, int stride)
        {
            Functions.Connection3D.KernelProduct function =
                new Functions.Connection3D.KernelProduct(x.Shape, y.Shape, kwidth, kheight, kdepth, stride);

            Tensor w = new Tensor(function.OutShape);

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

            return(w);
        }