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:: Tập trung:: Attr
#include <array_ops.h>
Trình thiết lập thuộc tính tùy chọn cho Gather .
Bản tóm tắt
Thuộc tính công khai
xác thực_indices_
bool tensorflow::ops::Gather::Attrs::validate_indices_ = true
Chức năng công cộng
Xác thực chỉ số
TF_MUST_USE_RESULT Attrs tensorflow::ops::Gather::Attrs::ValidateIndices(
bool x
)
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::Gather::Attrs Struct Reference\n\ntensorflow::ops::Gather::Attrs\n==============================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [Gather](/versions/r2.3/api_docs/cc/class/tensorflow/ops/gather#classtensorflow_1_1ops_1_1_gather).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------|--------|\n| [validate_indices_](#structtensorflow_1_1ops_1_1_gather_1_1_attrs_1a25d64e28800785c41fb7a7bffb70c642)` = true` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ValidateIndices](#structtensorflow_1_1ops_1_1_gather_1_1_attrs_1a35d2caff6e4841c512b30491f857d41a)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/gather/attrs#structtensorflow_1_1ops_1_1_gather_1_1_attrs) Defaults to true. |\n\nPublic attributes\n-----------------\n\n### validate_indices_\n\n```scdoc\nbool tensorflow::ops::Gather::Attrs::validate_indices_ = true\n``` \n\nPublic functions\n----------------\n\n### ValidateIndices\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Gather::Attrs::ValidateIndices(\n bool x\n)\n``` \nDefaults to true."]]