संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: फ़ाइल लिखें
#include <io_ops.h>
इनपुट फ़ाइल नाम पर फ़ाइल की सामग्री लिखता है।
सारांश
फ़ाइल और पुनरावर्ती रूप से बनाता है
यदि मौजूद नहीं है तो निर्देशिका बनाता है।
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- फ़ाइल नाम: अदिश. उस फ़ाइल का नाम जिसमें हम सामग्री लिखते हैं।
- सामग्री: अदिश. आउटपुट फ़ाइल में लिखी जाने वाली सामग्री.
रिटर्न:
सार्वजनिक गुण
सार्वजनिक समारोह
ऑपरेटर::टेन्सरफ़्लो::ऑपरेशन
operator::tensorflow::Operation() const
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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::WriteFile Class Reference\n\ntensorflow::ops::WriteFile\n==========================\n\n`#include \u003cio_ops.h\u003e`\n\nWrites contents to the file at input filename.\n\nSummary\n-------\n\nCreates file and recursively\n\ncreates directory if not existing.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- filename: scalar. The name of the file to which we write the contents.\n- contents: scalar. The content to be written to the output file.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [WriteFile](#classtensorflow_1_1ops_1_1_write_file_1a0b63c63af08131b1edef0b954e9b3f0d)`(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)` filename, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_write_file_1ae280554653b226ad102867a40c276911) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_write_file_1af0ad99c4b33a1b5185455beb48fcdba5)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### WriteFile\n\n```gdscript\n WriteFile(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input filename,\n ::tensorflow::Input contents\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]