/// <summary>チャネルごとの2次元逆畳み込み</summary> public static Tensor ChannelwiseDeconvolution2D(Tensor x, Tensor w, int stride, 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.Connection2D.ChannelwiseDeconvolution function = new Functions.Connection2D.ChannelwiseDeconvolution(outshape, w.Shape, stride); Tensor y = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, w }, new Tensor[] { y }); return(y); }