संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: टेंसरअरे:: Attrs
#include <data_flow_ops.h>
TensorArray के लिए वैकल्पिक विशेषता सेटर्स।
सारांश
सार्वजनिक समारोह |
---|
ClearAfterRead (bool x) | यदि सत्य (डिफ़ॉल्ट) है, तो पढ़ने के बाद TensorArray में टेंसर साफ़ हो जाते हैं। |
DynamicSize (bool x) | एक बूलियन जो यह निर्धारित करता है कि क्या TensorArray को लिखने का आकार बढ़ने की अनुमति है। |
ElementShape (PartialTensorShape x) | किसी तत्व का अपेक्षित आकार, यदि ज्ञात हो। |
IdenticalElementShapes (bool x) | यदि सही है (डिफ़ॉल्ट गलत है), तो TensorArray में सभी तत्वों के समान आकार होने की उम्मीद की जाएगी। |
TensorArrayName (StringPiece x) | अस्थायी टेंसर_एरे संसाधन के लिए उपयोग किए गए नाम को ओवरराइड करता है। |
सार्वजनिक गुण
पढ़ने के बाद साफ़ करें
bool tensorflow::ops::TensorArray::Attrs::clear_after_read_ = true
गतिशील_आकार_
bool tensorflow::ops::TensorArray::Attrs::dynamic_size_ = false
तत्व_आकार_
PartialTensorShape tensorflow::ops::TensorArray::Attrs::element_shape_ = ::tensorflow::PartialTensorShape()
समान_तत्व_आकार_
bool tensorflow::ops::TensorArray::Attrs::identical_element_shapes_ = false
टेंसर_अरे_नाम_
StringPiece tensorflow::ops::TensorArray::Attrs::tensor_array_name_ = ""
सार्वजनिक समारोह
क्लियरआफ्टररीड
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::ClearAfterRead(
bool x
)
यदि सत्य (डिफ़ॉल्ट) है, तो पढ़ने के बाद TensorArray में टेंसर साफ़ हो जाते हैं।
यह एकाधिक पढ़े गए शब्दार्थ को अक्षम कर देता है लेकिन स्मृति को शीघ्र जारी करने की अनुमति देता है।
डिफ़ॉल्ट सत्य पर
गतिशील आकार
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::DynamicSize(
bool x
)
एक बूलियन जो यह निर्धारित करता है कि क्या TensorArray को लिखने का आकार बढ़ने की अनुमति है।
डिफ़ॉल्ट रूप से, इसकी अनुमति नहीं है.
डिफ़ॉल्ट से असत्य
तत्त्वआकार
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::ElementShape(
PartialTensorShape x
)
किसी तत्व का अपेक्षित आकार, यदि ज्ञात हो।
TensorArray तत्वों के आकार को मान्य करने के लिए उपयोग किया जाता है। यदि यह आकार पूरी तरह से निर्दिष्ट नहीं है, तो शून्य-आकार के TensorArrays को इकट्ठा करना एक त्रुटि है।
के लिए डिफ़ॉल्ट
समान तत्व आकृतियाँ
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::IdenticalElementShapes(
bool x
)
यदि सही है (डिफ़ॉल्ट गलत है), तो TensorArray में सभी तत्वों के समान आकार होने की उम्मीद की जाएगी।
यह कुछ व्यवहारों की अनुमति देता है, जैसे लिखने पर सुसंगत आकृतियों की गतिशील रूप से जाँच करना, और स्टैक पर उचित आकार के शून्य टेंसर को भरने में सक्षम होना, भले ही element_shape विशेषता पूरी तरह से परिभाषित न हो।
डिफ़ॉल्ट से असत्य
TensorArrayName
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::TensorArrayName(
StringPiece x
)
अस्थायी टेंसर_एरे संसाधन के लिए उपयोग किए गए नाम को ओवरराइड करता है।
डिफ़ॉल्ट मान ' TensorArray ' op का नाम है (जिसकी अद्वितीय गारंटी है)।
डिफ़ॉल्ट रूप से ""
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::TensorArray::Attrs Struct Reference\n\ntensorflow::ops::TensorArray::Attrs\n===================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------|----------------------|\n| [clear_after_read_](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1adf69f46749934d660c3721550ea1c03a)` = true` | `bool` |\n| [dynamic_size_](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1a8ad7c8391ad0b235dfdfd5a6db9732e3)` = false` | `bool` |\n| [element_shape_](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1a72e5eb3fb8c00fe4a457046e3ebbaabf)` = ::tensorflow::PartialTensorShape()` | `PartialTensorShape` |\n| [identical_element_shapes_](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1a54f4ec465ff422399336316e2593ecd1)` = false` | `bool` |\n| [tensor_array_name_](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1abf20ffc7391f652ec55c110cc1ef6a62)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ClearAfterRead](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1afd43b315da52533acfc34c6cf9bb6d0c)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array/attrs#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs) If true (default), Tensors in the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) are cleared after being read. |\n| [DynamicSize](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1a2e7a4d021eec60921c502ca0af09cfd1)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array/attrs#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs) A boolean that determines whether writes to the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) are allowed to grow the size. |\n| [ElementShape](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1aa6759843dcee15a20ca580b47055468c)`(PartialTensorShape x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array/attrs#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs) The expected shape of an element, if known. |\n| [IdenticalElementShapes](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1a821ffb1df33eb2716154fe6c0ed03284)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array/attrs#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs) If true (default is false), then all elements in the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) will be expected to have have identical shapes. |\n| [TensorArrayName](#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs_1a8ba097c423bc48c48ee1d8ac417dd021)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array/attrs#structtensorflow_1_1ops_1_1_tensor_array_1_1_attrs) Overrides the name used for the temporary tensor_array resource. |\n\nPublic attributes\n-----------------\n\n### clear_after_read_\n\n```scdoc\nbool tensorflow::ops::TensorArray::Attrs::clear_after_read_ = true\n``` \n\n### dynamic_size_\n\n```scdoc\nbool tensorflow::ops::TensorArray::Attrs::dynamic_size_ = false\n``` \n\n### element_shape_\n\n```scdoc\nPartialTensorShape tensorflow::ops::TensorArray::Attrs::element_shape_ = ::tensorflow::PartialTensorShape()\n``` \n\n### identical_element_shapes_\n\n```scdoc\nbool tensorflow::ops::TensorArray::Attrs::identical_element_shapes_ = false\n``` \n\n### tensor_array_name_\n\n```scdoc\nStringPiece tensorflow::ops::TensorArray::Attrs::tensor_array_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### ClearAfterRead\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::ClearAfterRead(\n bool x\n)\n``` \nIf true (default), Tensors in the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) are cleared after being read.\n\nThis disables multiple read semantics but allows early release of memory.\n\nDefaults to true \n\n### DynamicSize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::DynamicSize(\n bool x\n)\n``` \nA boolean that determines whether writes to the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) are allowed to grow the size.\n\nBy default, this is not allowed.\n\nDefaults to false \n\n### ElementShape\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::ElementShape(\n PartialTensorShape x\n)\n``` \nThe expected shape of an element, if known.\n\nUsed to validate the shapes of [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) elements. If this shape is not fully specified, gathering zero-size TensorArrays is an error.\n\nDefaults to \n\n### IdenticalElementShapes\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::IdenticalElementShapes(\n bool x\n)\n``` \nIf true (default is false), then all elements in the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) will be expected to have have identical shapes.\n\nThis allows certain behaviors, like dynamically checking for consistent shapes on write, and being able to fill in properly shaped zero tensors on stack even if the element_shape attribute is not fully defined.\n\nDefaults to false \n\n### TensorArrayName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArray::Attrs::TensorArrayName(\n StringPiece x\n)\n``` \nOverrides the name used for the temporary tensor_array resource.\n\nDefault value is the name of the '[TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array)' op (which is guaranteed unique).\n\nDefaults to \"\""]]