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