tensorflow::ops::Angle

#include <math_ops.h>

Trả về đối số là một số phức.

Bản tóm tắt

Với input một tensor chứa các số phức, phép toán này trả về một tensor kiểu float có dạng là đối số của mỗi phần tử trong input . Tất cả các phần tử trong input phải là các số phức có dạng . \(a + bj\)trong đó a là phần thực và b là phần ảo.

Đối số được trả về bởi thao tác này có dạng \(atan2(b, a)\).

Ví dụ:

# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.angle(input) ==> [2.0132, 1.056]

(numpy) Tương đương với np.angle.

Luận điểm:

Trả về:

Hàm khởi tạo và hàm hủy

Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Angle::Attrs & attrs)

Thuộc tính công khai

operation
output

Chức năng công cộng

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Các hàm tĩnh công khai

Tout (DataType x)

Cấu trúc

tensorflow::ops::Angle::Attrs

Các thiết lập thuộc tính tùy chọn cho Góc .

Thuộc tính công khai

hoạt động

Operation operation

đầu ra

::tensorflow::Output output

Chức năng công cộng

Góc

 Angle(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

Góc

 Angle(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const Angle::Attrs & attrs
)

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Các hàm tĩnh công khai

Người môi giới

Attrs Tout(
  DataType x
)