tensorflow::ops::Complex

#include <math_ops.h>

Chuyển đổi hai số thực thành một số phức.

Bản tóm tắt

Cho một tensor real biểu diễn phần thực của một số phức và một tensor imag biểu diễn phần ảo của một số phức, phép toán này trả về các số phức theo từng phần tử có dạng \(a + bj\)trong đó a biểu thị phần real và b biểu thị phần imag .

Các tensor đầu vào real và imag phải có cùng hình dạng.

Ví dụ:

# tensor 'real' is [2.25, 3.25]
# tensor `imag` is [4.75, 5.75]
tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]

Luận điểm:

Trả về:

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

Complex (const :: tensorflow::Scope & scope, :: tensorflow::Input real, :: tensorflow::Input imag)
Complex (const :: tensorflow::Scope & scope, :: tensorflow::Input real, :: tensorflow::Input imag, const Complex::Attrs & attrs)

Thuộc tính công khai

operation
out

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::Complex::Attrs

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

Thuộc tính công khai

hoạt động

Operation operation

ngoài

::tensorflow::Output out

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

Tổ hợp

 Complex(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input real,
  ::tensorflow::Input imag
)

Tổ hợp

 Complex(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input real,
  ::tensorflow::Input imag,
  const Complex::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
)