tensorflow::ops::Real

#include <math_ops.h>

Trả về phần thực của 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 , là phần thực 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 được trả về bởi phép toán này và b là phần ảo.

Ví dụ:

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

Luận điểm:

Trả về:

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

Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::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::Real::Attrs

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

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

Thực tế

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

Thực tế

 Real(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const Real::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
)