예제 #1
0
        /// <summary>複素2次元カーネル積</summary>
        public static VariableNode ComplexKernelProduct2D(VariableNode x, VariableNode y, int kwidth, int kheight, int stride, bool transpose = false)
        {
            Function function =
                new Functions.ComplexConvolution.ComplexKernelProduct2D(x.Shape, y.Shape, kwidth, kheight, stride, transpose);

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

            return(w);
        }
예제 #2
0
        /// <summary>複素2次元カーネル積</summary>
        public static Tensor ComplexKernelProduct2D(Tensor x, Tensor y, int kwidth, int kheight, int stride, bool transpose = false)
        {
            Functions.ComplexConvolution.ComplexKernelProduct2D function =
                new Functions.ComplexConvolution.ComplexKernelProduct2D(x.Shape, y.Shape, kwidth, kheight, stride, transpose);

            Tensor w = new Tensor(function.OutShape);

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

            return(w);
        }