संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: जटिल
#include <math_ops.h>
दो वास्तविक संख्याओं को एक सम्मिश्र संख्या में परिवर्तित करता है।
सारांश
एक जटिल संख्या के वास्तविक भाग का प्रतिनिधित्व करने वाला एक टेंसर real
और एक जटिल संख्या के काल्पनिक भाग का प्रतिनिधित्व करने वाला एक टेंसर imag
दिया गया है, यह ऑपरेशन जटिल संख्याओं को तत्व के अनुसार लौटाता है \(a + bj\), जहां a real
भाग का प्रतिनिधित्व करता है और b imag
भाग का प्रतिनिधित्व करता है।
इनपुट टेंसर real
और imag
आकार समान होना चाहिए।
उदाहरण के लिए:
# tensor 'real' is [2.25, 3.25]
# tensor `imag` is [4.75, 5.75]
tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
तर्क:
रिटर्न:
सार्वजनिक स्थैतिक कार्य |
---|
Tout (DataType x) | |
सार्वजनिक गुण
सार्वजनिक समारोह
नोड
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ऑपरेटर::टेन्सरफ़्लो::आउटपुट
operator::tensorflow::Output() const
सार्वजनिक स्थैतिक कार्य
टाउट
Attrs Tout(
DataType x
)
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::Complex Class Reference\n\ntensorflow::ops::Complex\n========================\n\n`#include \u003cmath_ops.h\u003e`\n\nConverts two real numbers to a complex number.\n\nSummary\n-------\n\nGiven a tensor `real` representing the real part of a complex number, and a tensor `imag` representing the imaginary part of a complex number, this operation returns complex numbers elementwise of the form \\\\(a + bj\\\\), where *a* represents the `real` part and *b* represents the `imag` part.\n\nThe input tensors `real` and `imag` must have the same shape.\n\nFor example:\n\n\n```mysql\n# tensor 'real' is [2.25, 3.25]\n# tensor `imag` is [4.75, 5.75]\ntf.complex(real, imag) ==\u003e [[2.25 + 4.75j], [3.25 + 5.75j]]\n```\n\n\u003cbr /\u003e\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The out tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Complex](#classtensorflow_1_1ops_1_1_complex_1a1a408c4b23b2713522e40da08c6fd1ca)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` real, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` imag)` ||\n| [Complex](#classtensorflow_1_1ops_1_1_complex_1a6ce8570ce7740f8f1b49b2af15f49cb2)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` real, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` imag, const `[Complex::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/complex/attrs#structtensorflow_1_1ops_1_1_complex_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_complex_1aeba6f262bfca7f97cf33679ca976b5a3) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [out](#classtensorflow_1_1ops_1_1_complex_1a7a21ca24321bcd95ea7d7084420665b7) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_complex_1a4f74d182d8d81302845eb3368d92fa66)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_complex_1a71e48dcf7a59ef40afc258356df18810)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_complex_1a968614d690b87e4089d84b5d66e47d69)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|\n| [Tout](#classtensorflow_1_1ops_1_1_complex_1a4569ccb9e7ceedcb6fbdd624aca041fa)`(DataType x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/complex/attrs#structtensorflow_1_1ops_1_1_complex_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Complex::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/complex/attrs) | Optional attribute setters for [Complex](/versions/r2.2/api_docs/cc/class/tensorflow/ops/complex#classtensorflow_1_1ops_1_1_complex). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### out\n\n```text\n::tensorflow::Output out\n``` \n\nPublic functions\n----------------\n\n### Complex\n\n```gdscript\n Complex(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input real,\n ::tensorflow::Input imag\n)\n``` \n\n### Complex\n\n```gdscript\n Complex(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input real,\n ::tensorflow::Input imag,\n const Complex::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```"]]