/// <summary>3項演算</summary> internal static Tensor TrinaryArithmetric(Tensor x1, Tensor x2, Tensor x3, Operators.TrinaryArithmetric.TrinaryArithmetric trinary_operator) { Function function = new Functions.TrinaryArithmetric.TrinaryArithmetric(trinary_operator); Shape y_shape = function.OutputShapes(x1.Shape, x2.Shape, x3.Shape)[0]; Tensor y = new Tensor(y_shape); function.Execute(new Tensor[] { x1, x2, x3 }, new Tensor[] { y }); return(y); }
/// <summary>3項演算</summary> internal static VariableNode TrinaryArithmetric(VariableNode x1, VariableNode x2, VariableNode x3, Operators.TrinaryArithmetric.TrinaryArithmetric trinary_operator) { Function function = new Functions.TrinaryArithmetric.TrinaryArithmetric(trinary_operator); return(Apply(function, x1, x2, x3)[0]); }