संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: कोण
#include <math_ops.h>
किसी सम्मिश्र संख्या का तर्क लौटाता है.
सारांश
जटिल संख्याओं के एक टेंसर input
देखते हुए, यह ऑपरेशन float
प्रकार का एक टेंसर लौटाता है जो input
में प्रत्येक तत्व का तर्क है। input
में सभी तत्व प्रपत्र की सम्मिश्र संख्याएँ होने चाहिए \(a + bj\), जहां a वास्तविक भाग है और b काल्पनिक भाग है।
इस ऑपरेशन द्वारा लौटाया गया तर्क फॉर्म का है \(atan2(b, a)\).
उदाहरण के लिए:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.angle(input) ==> [2.0132, 1.056]
(सुन्न) np.कोण के समतुल्य।
तर्क:
रिटर्न:
सार्वजनिक स्थैतिक कार्य |
---|
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::Angle Class Reference\n\ntensorflow::ops::Angle\n======================\n\n`#include \u003cmath_ops.h\u003e`\n\nReturns the argument 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 argument of each element in `input`. [All](/versions/r2.1/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.\n\nThe argument returned by this operation is of the form \\\\(atan2(b, a)\\\\).\n\nFor example:\n\n\n```text\n# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]\ntf.angle(input) ==\u003e [2.0132, 1.056]\n```\n\n\u003cbr /\u003e\n\n(numpy) Equivalent to np.angle.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Angle](#classtensorflow_1_1ops_1_1_angle_1a47791ccc55af361ed20e9329be926cf6)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input)` ||\n| [Angle](#classtensorflow_1_1ops_1_1_angle_1ad655869c197fdb8a1cc5080b72a87226)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, const `[Angle::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/angle/attrs#structtensorflow_1_1ops_1_1_angle_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_angle_1a51298925de95397310ac4c715229c927) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_angle_1a45a029f66865271344ede680a3903795) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_angle_1a4cbf3eaf2f27c7a6a5fde00b9b46495a)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_angle_1a3dbe5d6ed0e092b27882a34e24d61b6f)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_angle_1a947b786764bea16a027c4ca59f06a205)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [Tout](#classtensorflow_1_1ops_1_1_angle_1a16753413cc04e4dcfac2ee2931c0e939)`(DataType x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/angle/attrs#structtensorflow_1_1ops_1_1_angle_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Angle::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/angle/attrs) | Optional attribute setters for [Angle](/versions/r2.1/api_docs/cc/class/tensorflow/ops/angle#classtensorflow_1_1ops_1_1_angle). |\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### Angle\n\n```gdscript\n Angle(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\n)\n``` \n\n### Angle\n\n```gdscript\n Angle(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n const Angle::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```"]]