tensorflow :: ops :: Nyata
#include <math_ops.h>
Menampilkan bagian nyata dari bilangan kompleks.
Ringkasan
Diberikan input
tensor bilangan kompleks, operasi ini mengembalikan tensor berjenis float
yang merupakan bagian nyata dari setiap elemen dalam input
. Semua elemen yang input
harus berupa bilangan kompleks dalam bentuk \(a + bj\), di mana a adalah bagian nyata yang dikembalikan oleh operasi ini dan b adalah bagian imajiner.
Sebagai contoh:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.real(input) ==> [-2.25, 3.25]
Argumen:
- scope: Objek Scope
Pengembalian:
-
Output
: Tensor keluaran.
Pembuat dan Penghancur | |
---|---|
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::Attrs & attrs) |
Atribut publik | |
---|---|
operation | |
output |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Tout (DataType x) |
Structs | |
---|---|
tensorflow :: ops :: Real :: Attrs | Penyetel atribut opsional untuk Real . |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
Nyata
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Nyata
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Real::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Mengintip
Attrs Tout( DataType x )