Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: Rào CảnChènNhiều
#include <data_flow_ops.h>
Đối với mỗi khóa, gán giá trị tương ứng cho thành phần được chỉ định.
Bản tóm tắt
Nếu không tìm thấy khóa trong rào chắn, thao tác này sẽ tạo ra một phần tử mới chưa hoàn chỉnh. Nếu tìm thấy khóa trong rào cản và phần tử đã có giá trị tại thành phần_index thì thao tác này sẽ không thành công với INVALID_ARGUMENT và khiến rào cản ở trạng thái không xác định.
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- tay cầm: Tay cầm của một rào cản.
- phím: Một tensor một chiều của các phím, có độ dài n.
- giá trị: Một tensor giá trị bất kỳ chiều nào, được liên kết với các khóa tương ứng. Chiều thứ 0 phải có độ dài n.
- thành phần_index: Thành phần của các phần tử rào cản đang được chỉ định.
Trả về:
Thuộc tính công khai
Chức năng công cộng
toán tử::tenorflow::Hoạt động
operator::tensorflow::Operation() const
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::BarrierInsertMany Class Reference\n\ntensorflow::ops::BarrierInsertMany\n==================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nFor each key, assigns the respective value to the specified component.\n\nSummary\n-------\n\nIf a key is not found in the barrier, this operation will create a new incomplete element. If a key is found in the barrier, and the element already has a value at component_index, this operation will fail with INVALID_ARGUMENT, and leave the barrier in an undefined state.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a barrier.\n- keys: A one-dimensional tensor of keys, with length n.\n- values: An any-dimensional tensor of values, which are associated with the respective keys. The 0th dimension must have length n.\n- component_index: The component of the barrier elements that is being assigned.\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| [BarrierInsertMany](#classtensorflow_1_1ops_1_1_barrier_insert_many_1a8ee6cfc13fdf57f11e86b4d6692898b8)`(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)` handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` keys, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` values, int64 component_index)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_barrier_insert_many_1aa3425272e66a4448615caa6b258f4a66) | [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_barrier_insert_many_1ad8ad6d9598344b4090c7d2af0ace852d)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### BarrierInsertMany\n\n```gdscript\n BarrierInsertMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input keys,\n ::tensorflow::Input values,\n int64 component_index\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]