예제 #1
0
        /// <summary>3次元ベクトル3次元カーネル積</summary>
        public static VariableNode TrivectorKernelProduct3D(VariableNode x, VariableNode y, VariableNode q, int kwidth, int kheight, int kdepth, int stride, bool transpose = false)
        {
            Function function =
                new Functions.TrivectorConvolution.TrivectorKernelProduct3D(x.Shape, y.Shape, kwidth, kheight, kdepth, stride, transpose);

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

            return(w);
        }
예제 #2
0
        /// <summary>3次元ベクトル3次元カーネル積</summary>
        public static Tensor TrivectorKernelProduct3D(Tensor x, Tensor y, Tensor q, int kwidth, int kheight, int kdepth, int stride, bool transpose = false)
        {
            Functions.TrivectorConvolution.TrivectorKernelProduct3D function =
                new Functions.TrivectorConvolution.TrivectorKernelProduct3D(x.Shape, y.Shape, kwidth, kheight, kdepth, stride, transpose);

            Tensor w = new Tensor(function.OutShape);

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

            return(w);
        }