จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: SparseSliceGrad
#include <sparse_ops.h>
ตัวดำเนินการไล่ระดับสีสำหรับ SparseSlice op
สรุป
การดำเนินการนี้ใช้ค่าที่ไม่ว่างเปล่าของการไล่ระดับสีอัปสตรีม wrt ของ SparseTensor
ที่หั่นบาง ๆ และส่งออกการไล่ระดับสีด้วยค่าที่ไม่ว่างเปล่าของอินพุต SparseTensor
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- backprop_val_grad: 1-D การไล่ระดับสีที่เกี่ยวข้องกับค่าที่ไม่ว่างเปล่าของ
SparseTensor
ที่หั่นเป็นชิ้น - input_indices: 2-D
indices
ของอินพุต SparseTensor
- input_start: 1-D เทนเซอร์แสดงถึงจุดเริ่มต้นของชิ้น
- output_indices: 2-D
indices
ของ SparseTensor
ที่หั่นเป็นชิ้น
ผลตอบแทน:
-
Output
: 1-D การไล่ระดับสีที่เกี่ยวข้องกับค่าที่ไม่ว่างเปล่าของอินพุต SparseTensor
คุณลักษณะสาธารณะ
งานสาธารณะ
โหนด
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::SparseSliceGrad Class Reference\n\ntensorflow::ops::SparseSliceGrad\n================================\n\n`#include \u003csparse_ops.h\u003e`\n\nThe gradient operator for the [SparseSlice](/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice) op.\n\nSummary\n-------\n\nThis op takes in the upstream gradient w.r.t. non-empty values of the sliced `SparseTensor`, and outputs the gradients w.r.t. the non-empty values of input `SparseTensor`.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- backprop_val_grad: 1-D. The gradient with respect to the non-empty values of the sliced `SparseTensor`.\n- input_indices: 2-D. The `indices` of the input `SparseTensor`.\n- input_start: 1-D. tensor represents the start of the slice.\n- output_indices: 2-D. The `indices` of the sliced `SparseTensor`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 1-D. The gradient with respect to the non-empty values of input `SparseTensor`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseSliceGrad](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1a61a49266ea8096f01fa4aa844f1c75c3)`(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)` backprop_val_grad, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_indices, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_start, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` output_indices)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1adfc057ace318022b3bee9cd07bd6f835) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [val_grad](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1a1674c7bc87e5fec3efd3085e2daa7ca3) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1ababeb6aceed2c9b368b9b79983a1fe7f)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1a98c6cf59f7806750cf8dc6e8fa5c6f7f)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1aff4fc14838514fb7e2de68eea849d589)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### val_grad\n\n```scdoc\n::tensorflow::Output val_grad\n``` \n\nPublic functions\n----------------\n\n### SparseSliceGrad\n\n```gdscript\n SparseSliceGrad(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input backprop_val_grad,\n ::tensorflow::Input input_indices,\n ::tensorflow::Input input_start,\n ::tensorflow::Input output_indices\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```"]]