diff options
Diffstat (limited to 'tensorflow/core/ops/math_ops.cc')
-rw-r--r-- | tensorflow/core/ops/math_ops.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tensorflow/core/ops/math_ops.cc b/tensorflow/core/ops/math_ops.cc index 494358fec6..01b35064b2 100644 --- a/tensorflow/core/ops/math_ops.cc +++ b/tensorflow/core/ops/math_ops.cc @@ -731,6 +731,21 @@ The polygamma function is defined as: where \\(\psi(x)\\) is the digamma function. )doc"); +REGISTER_OP("Atan2") + .Input("y: T") + .Input("x: T") + .Output("z: T") + .Attr("T: {float, double}") + .SetShapeFn(shape_inference::BroadcastBinaryOpShapeFn) + .Doc(R"doc( +Computes arctangent of `y/x` element-wise, respecting signs of the arguments. +This is the angle \( \theta \in [-\pi, \pi] \) such that +\[ x = r \cos(\theta) \] +and +\[ y = r \sin(\theta) \] +where \(r = \sqrt(x^2 + y^2) \). +)doc"); + REGISTER_OP("Betainc") .Input("a: T") .Input("b: T") |