זרימת טנסור :: אופ :: אמיתי
#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]
טענות:
- היקף: אובייקט Scope
החזרות:
-
Output
: טנסור הפלט.
קונסטרוקטורים ומשחתנים | |
---|---|
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
output |
פונקציות ציבוריות | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
Tout (DataType x) |
סטרוקטורים | |
---|---|
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
אופרטור :: זרימת טנסור :: קלט
operator::tensorflow::Input() const
אופרטור :: זרימת טנסור :: פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
לְסַפְסֵר
Attrs Tout( DataType x )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[]
[]