tensorflow::ops::Atan2
#include <math_ops.h>
Вычисляет арктангенс y/x элемента по элементу, учитывая знаки аргументов.
Краткое описание
Это угол \( \theta \in [-\pi, \pi] \) такой, что \[ x = r \cos(\theta) \] и \[ y = r \sin(\theta) \] где \(r = \sqrt{x^2 + y^2} \).
Например:
x = [1., 1.] y = [1., -1.] print((tf.math.atan2(y,x) * (180 / np.pi)).numpy()) [ 45. -45.]
Аргументы:
- scope: Объект Scope
Возвращаемое значение:
-
Output: Тензор z.
| Конструкторы и деструкторы | |
|---|---|
Atan2(const ::tensorflow::Scope & scope, ::tensorflow::Input y, ::tensorflow::Input x) |
| Публичные атрибуты | |
|---|---|
operation | |
z | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Публичные атрибуты
operation
Operation operation
z
::tensorflow::Output z
Публичные функции
Atan2
Atan2( const ::tensorflow::Scope & scope, ::tensorflow::Input y, ::tensorflow::Input x )
узел
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/atan2