Пример #1
0
        /// <summary>チャネルごとの3次元畳み込み</summary>
        public static VariableNode ChannelwiseConvolution3D(VariableNode x, VariableNode w, int stride)
        {
            Function function =
                new Functions.Connection3D.ChannelwiseConvolution(x.Shape, w.Shape, stride);

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

            return(y);
        }
Пример #2
0
        /// <summary>チャネルごとの3次元畳み込み</summary>
        public static Tensor ChannelwiseConvolution3D(Tensor x, Tensor w, int stride)
        {
            Functions.Connection3D.ChannelwiseConvolution function =
                new Functions.Connection3D.ChannelwiseConvolution(x.Shape, w.Shape, stride);

            Tensor y = new Tensor(function.OutShape);

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

            return(y);
        }