/// <summary>チャネルごとの1次元カーネル積</summary> public static VariableNode ChannelwiseKernelProduct1D(VariableNode x, VariableNode y, int kwidth, int stride) { Function function = new Functions.Connection1D.ChannelwiseKernelProduct(x.Shape, y.Shape, kwidth, stride); VariableNode w = Apply(function, x, y)[0]; return(w); }
/// <summary>チャネルごとの1次元カーネル積</summary> public static Tensor ChannelwiseKernelProduct1D(Tensor x, Tensor y, int kwidth, int stride) { Functions.Connection1D.ChannelwiseKernelProduct function = new Functions.Connection1D.ChannelwiseKernelProduct(x.Shape, y.Shape, kwidth, stride); Tensor w = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, y }, new Tensor[] { w }); return(w); }