/// <summary>チャネルごとの2次元畳み込み</summary> public static VariableNode ChannelwiseConvolution2D(VariableNode x, VariableNode w, int stride) { Function function = new Functions.Connection2D.ChannelwiseConvolution(x.Shape, w.Shape, stride); VariableNode y = Apply(function, x, w)[0]; return(y); }
/// <summary>チャネルごとの2次元畳み込み</summary> public static Tensor ChannelwiseConvolution2D(Tensor x, Tensor w, int stride) { Functions.Connection2D.ChannelwiseConvolution function = new Functions.Connection2D.ChannelwiseConvolution(x.Shape, w.Shape, stride); Tensor y = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, w }, new Tensor[] { y }); return(y); }