Esempio n. 1
0
        /// <summary>1次元畳み込み</summary>
        public static VariableNode Convolution1D(VariableNode x, VariableNode w, int stride)
        {
            Function function =
                new Functions.Connection1D.Convolution(x.Shape, w.Shape, stride);

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

            return(y);
        }
Esempio n. 2
0
        /// <summary>1次元畳み込み</summary>
        public static Tensor Convolution1D(Tensor x, Tensor w, int stride)
        {
            Functions.Connection1D.Convolution function =
                new Functions.Connection1D.Convolution(x.Shape, w.Shape, stride);

            Tensor y = new Tensor(function.OutShape);

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

            return(y);
        }