/// <summary>全結合カーネル積</summary> public static VariableNode KernelProductDense(VariableNode x, VariableNode y) { Function function = new Functions.ConnectionDense.KernelProduct(x.Shape, y.Shape); VariableNode w = Apply(function, x, y)[0]; return(w); }
/// <summary>全結合カーネル積</summary> public static Tensor KernelProductDense(Tensor x, Tensor y) { Functions.ConnectionDense.KernelProduct function = new Functions.ConnectionDense.KernelProduct(x.Shape, y.Shape); Tensor w = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, y }, new Tensor[] { w }); return(w); }