/// <summary>複素1次元カーネル積</summary> public static VariableNode ComplexKernelProduct1D(VariableNode x, VariableNode y, int kwidth, int stride, bool transpose = false) { Function function = new Functions.ComplexConvolution.ComplexKernelProduct1D(x.Shape, y.Shape, kwidth, stride, transpose); VariableNode w = Apply(function, x, y)[0]; return(w); }
/// <summary>複素1次元カーネル積</summary> public static Tensor ComplexKernelProduct1D(Tensor x, Tensor y, int kwidth, int stride, bool transpose = false) { Functions.ComplexConvolution.ComplexKernelProduct1D function = new Functions.ComplexConvolution.ComplexKernelProduct1D(x.Shape, y.Shape, kwidth, stride, transpose); Tensor w = new Tensor(function.OutShape); function.Execute(new Tensor[] { x, y }, new Tensor[] { w }); return(w); }