/// <summary>四元数2次元逆畳み込み</summary>
        public static VariableNode QuaternionDeconvolution2D(VariableNode x, VariableNode w, int stride, bool gradmode = false, Shape outshape = null)
        {
            if (outshape == null)
            {
                int outwidth  = (x.Shape.Width - 1) * stride + w.Shape.Width;
                int outheight = (x.Shape.Height - 1) * stride + w.Shape.Height;

                outshape = Shape.Map2D(w.Shape.InChannels, outwidth, outheight, x.Shape.Batch);
            }

            Function function =
                new Functions.QuaternionConvolution.QuaternionDeconvolution2D(outshape, w.Shape, stride, gradmode);

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

            return(y);
        }
        /// <summary>四元数2次元逆畳み込み</summary>
        public static Tensor QuaternionDeconvolution2D(Tensor x, Tensor w, int stride, bool gradmode = false, Shape outshape = null)
        {
            if (outshape == null)
            {
                int outwidth  = (x.Shape.Width - 1) * stride + w.Shape.Width;
                int outheight = (x.Shape.Height - 1) * stride + w.Shape.Height;

                outshape = Shape.Map2D(w.Shape.InChannels, outwidth, outheight, x.Shape.Batch);
            }

            Functions.QuaternionConvolution.QuaternionDeconvolution2D function =
                new Functions.QuaternionConvolution.QuaternionDeconvolution2D(outshape, w.Shape, stride, gradmode);

            Tensor y = new Tensor(function.OutShape);

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

            return(y);
        }