تدفق التوتر:: العمليات:: صورة
#include <math_ops.h>
إرجاع الجزء التخيلي من عدد مركب.
ملخص
بالنظر إلى input
موتر من الأعداد المركبة، تُرجع هذه العملية موترًا من النوع float
وهو الجزء التخيلي من كل عنصر في input
. يجب أن تكون كافة العناصر في input
أرقامًا معقدة من النموذج \(a + bj\)حيث a هو الجزء الحقيقي و b هو الجزء التخيلي الذي تم إرجاعه بهذه العملية.
على سبيل المثال:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.imag(input) ==> [4.75, 5.75]
الحجج:
- النطاق: كائن النطاق
العوائد:
-
Output
: موتر الإخراج.
البنائين والمدمرين | |
---|---|
Imag (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Imag (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Imag::Attrs & attrs) |
الصفات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة العامة | |
---|---|
Tout (DataType x) |
الهياكل | |
---|---|
Tensorflow:: ops:: Imag:: Attrs | محددات السمات الاختيارية لـ Imag . |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
صورة
Imag( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
صورة
Imag( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Imag::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-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::Imag Class Reference\n\ntensorflow::ops::Imag\n=====================\n\n`#include \u003cmath_ops.h\u003e`\n\nReturns the imaginary 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 imaginary part of each element in `input`. [All](/versions/r2.0/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 and *b* is the imaginary part returned by this operation.\n\nFor example:\n\n\n```text\n# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]\ntf.imag(input) ==\u003e [4.75, 5.75]\n```\n\n\u003cbr /\u003e\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Imag](#classtensorflow_1_1ops_1_1_imag_1a406c38bf970910d1b58248e9feccd27a)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input)` ||\n| [Imag](#classtensorflow_1_1ops_1_1_imag_1a2bdbce17d9777d3c89abd2119f8b4fb5)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, const `[Imag::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/imag/attrs#structtensorflow_1_1ops_1_1_imag_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_imag_1aa302f5369963935318220e2bb607871f) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_imag_1af53e5f297c5f3549d3b850f55236e02f) | `::`[tensorflow::Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_imag_1af1badb37efafaa8b189b8808921ff53f)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_imag_1a33696d39c41ab48057a23c8b98b762bf)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_imag_1a833743732a3dfa7acfc167a529386580)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| [Tout](#classtensorflow_1_1ops_1_1_imag_1a4de42f03c8df0d3972028cebd8bab495)`(DataType x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/imag/attrs#structtensorflow_1_1ops_1_1_imag_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Imag::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/imag/attrs) | Optional attribute setters for [Imag](/versions/r2.0/api_docs/cc/class/tensorflow/ops/imag#classtensorflow_1_1ops_1_1_imag). |\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### Imag\n\n```gdscript\n Imag(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\n)\n``` \n\n### Imag\n\n```gdscript\n Imag(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n const Imag::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```"]]