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

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

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

            Tensor w = new Tensor(function.OutShape);

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

            return(w);
        }