/// <summary>四元数全結合カーネル積</summary> public static VariableNode QuaternionKernelProductDense(VariableNode x, VariableNode y, bool transpose = false) { Function function = new Functions.QuaternionConvolution.QuaternionKernelProductDense(x.Shape, y.Shape, transpose); VariableNode w = Apply(function, x, y)[0]; return(w); }
/// <summary>四元数全結合カーネル積</summary> public static Tensor QuaternionKernelProductDense(Tensor x, Tensor y, bool transpose = false) { Functions.QuaternionConvolution.QuaternionKernelProductDense function = new Functions.QuaternionConvolution.QuaternionKernelProductDense(x.Shape, y.Shape, transpose); Tensor w = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, y }, new Tensor[] { w }); return(w); }