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