/// <summary>ポイントごとの1次元カーネル積</summary> public static VariableNode PointwiseKernelProduct1D(VariableNode x, VariableNode y) { Function function = new Functions.Connection1D.PointwiseKernelProduct(x.Shape, y.Shape); VariableNode w = Apply(function, x, y)[0]; return(w); }
/// <summary>ポイントごとの1次元カーネル積</summary> public static Tensor PointwiseKernelProduct1D(Tensor x, Tensor y) { Functions.Connection1D.PointwiseKernelProduct function = new Functions.Connection1D.PointwiseKernelProduct(x.Shape, y.Shape); Tensor w = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, y }, new Tensor[] { w }); return(w); }