Exemple #1
0
        /// <summary>複素2次元畳み込み</summary>
        public static VariableNode ComplexConvolution2D(VariableNode x, VariableNode w, int stride, bool gradmode = false)
        {
            Function function =
                new Functions.ComplexConvolution.ComplexConvolution2D(x.Shape, w.Shape, stride, gradmode);

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

            return(y);
        }
Exemple #2
0
        /// <summary>複素2次元畳み込み</summary>
        public static Tensor ComplexConvolution2D(Tensor x, Tensor w, int stride, bool gradmode = false)
        {
            Functions.ComplexConvolution.ComplexConvolution2D function =
                new Functions.ComplexConvolution.ComplexConvolution2D(x.Shape, w.Shape, stride, gradmode);

            Tensor y = new Tensor(function.OutShape);

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

            return(y);
        }