จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: TensorArrayGradWithShape
#include <data_flow_ops.h>
สร้าง TensorArray สำหรับจัดเก็บค่าการไล่ระดับสีหลายค่าในแฮนเดิลที่กำหนด
สรุป
คล้ายกับ TensorArrayGradV3 อย่างไรก็ตาม มันสร้างตัวสะสมที่มีรูปร่างขยายเมื่อเปรียบเทียบกับอินพุต TensorArray ที่กำลังคำนวณการไล่ระดับสี ซึ่งช่วยให้สามารถคำนวณการไล่ระดับสีหลายรายการสำหรับ TensorArray เดียวกันได้โดยใช้ตัวสะสมเดียวกัน
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- ที่จับ: ที่จับสำหรับ TensorArray ไปข้างหน้า
- flow_in: สเกลาร์โฟลตที่บังคับใช้การเชื่อมโยงการดำเนินการที่เหมาะสม
- shape_to_prepend: เวกเตอร์ int32 ที่แสดงรูปร่าง องค์ประกอบในตัวสะสมการไล่ระดับสีจะมีรูปร่างซึ่งเป็นค่า shape_to_prepend ที่ต่อเข้ากับรูปร่างขององค์ประกอบใน TensorArray ที่สอดคล้องกับจุดจับอินพุต
- แหล่งที่มา: สตริงแหล่งที่มาของการไล่ระดับสี ใช้ในการตัดสินใจว่า TensorArray ไล่ ระดับสีใดที่จะส่งคืน
ผลตอบแทน:
คุณลักษณะสาธารณะ
งานสาธารณะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# tensorflow::ops::TensorArrayGradWithShape Class Reference\n\ntensorflow::ops::TensorArrayGradWithShape\n=========================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nCreates a [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) for storing multiple gradients of values in the given handle.\n\nSummary\n-------\n\nSimilar to TensorArrayGradV3. However it creates an accumulator with an expanded shape compared to the input [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) whose gradient is being computed. This enables multiple gradients for the same [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) to be calculated using the same accumulator.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to the forward [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array).\n- flow_in: A float scalar that enforces proper chaining of operations.\n- shape_to_prepend: An int32 vector representing a shape. Elements in the gradient accumulator will have shape which is this shape_to_prepend value concatenated with shape of the elements in the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) corresponding to the input handle.\n- source: The gradient source string, used to decide which gradient [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) to return.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) grad_handle\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) flow_out\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [TensorArrayGradWithShape](#classtensorflow_1_1ops_1_1_tensor_array_grad_with_shape_1ae957f3234c62f254b88ced73dd452371)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` flow_in, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` shape_to_prepend, StringPiece source)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [flow_out](#classtensorflow_1_1ops_1_1_tensor_array_grad_with_shape_1a7e66bafef678a0c4a661598e8d61c4a3) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [grad_handle](#classtensorflow_1_1ops_1_1_tensor_array_grad_with_shape_1a732338604dc6b1ce0db860e97a5df6ec) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_tensor_array_grad_with_shape_1a0430f64eabb7fa21eac6b06e3e01ec04) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\nPublic attributes\n-----------------\n\n### flow_out\n\n```scdoc\n::tensorflow::Output flow_out\n``` \n\n### grad_handle\n\n```scdoc\n::tensorflow::Output grad_handle\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### TensorArrayGradWithShape\n\n```gdscript\n TensorArrayGradWithShape(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input flow_in,\n ::tensorflow::Input shape_to_prepend,\n StringPiece source\n)\n```"]]