تدفق التوتر:: العمليات:: حقيقي
#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) |
الصفات العامة | |
---|---|
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
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
وظائف ثابتة العامة
توت
Attrs Tout( DataType x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::Real Class Reference\n\ntensorflow::ops::Real\n=====================\n\n`#include \u003cmath_ops.h\u003e`\n\nReturns the real part of a complex number.\n\nSummary\n-------\n\nGiven a tensor `input` of complex numbers, this operation returns a tensor of type `float` that is the real part of each element in `input`. [All](/versions/r1.15/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all) elements in `input` must be complex numbers of the form \\\\(a + bj\\\\), where *a* is the real part returned by this operation and *b* is the imaginary part.\n\nFor example:\n\n\n```text\n# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]\ntf.real(input) ==\u003e [-2.25, 3.25]\n```\n\n\u003cbr /\u003e\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Real](#classtensorflow_1_1ops_1_1_real_1a325ef3b733f6ad8692d9720b7e54225d)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input)` ||\n| [Real](#classtensorflow_1_1ops_1_1_real_1af45fe6c2bfe92acdfcd8e336edae84fa)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, const `[Real::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/real/attrs#structtensorflow_1_1ops_1_1_real_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_real_1aa95f3627ba746f832e286cdac76fb519) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_real_1a9cea0b88989b3dbfc93309a32579998f) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_real_1a867b9ea135418a9d1464fdfe16980b7f)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_real_1acd53e8c51378fa3ea7d4bdba4a188c3f)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_real_1a58cc5679f42ee343e17d4ac4cea1aae7)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [Tout](#classtensorflow_1_1ops_1_1_real_1a3978d1a4514b02a46543aaa1dc8ce5ef)`(DataType x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/real/attrs#structtensorflow_1_1ops_1_1_real_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Real::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/real/attrs) | Optional attribute setters for [Real](/versions/r1.15/api_docs/cc/class/tensorflow/ops/real#classtensorflow_1_1ops_1_1_real). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### Real\n\n```gdscript\n Real(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\n)\n``` \n\n### Real\n\n```gdscript\n Real(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n const Real::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Tout\n\n```text\nAttrs Tout(\n DataType x\n)\n```"]]