تدفق التوتر:: العمليات:: حقيقي
#include <math_ops.h>
إرجاع الجزء الحقيقي من عدد مركب.
ملخص
بالنظر إلى input
موتر من الأعداد المركبة، تُرجع هذه العملية موترًا من النوع float
وهو الجزء الحقيقي من كل عنصر في input
. يجب أن تكون كافة العناصر في input
أرقامًا معقدة من النموذج \(a + bj\)حيث a هو الجزء الحقيقي الذي تم إرجاعه بهذه العملية و b هو الجزء التخيلي.
على سبيل المثال:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.real(input) ==> [-2.25, 3.25]
الحجج:
- النطاق: كائن النطاق
العوائد:
-
Output
: موتر الإخراج.
البنائين والمدمرين | |
---|---|
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::Attrs & attrs) |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
الهياكل | |
---|---|
Tensorflow:: ops:: Real:: Attrs | محددات السمات الاختيارية لـ Real . |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
حقيقي
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
حقيقي
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Real::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
وظائف ثابتة العامة
توت
Attrs Tout( DataType x )