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:: Vòng lặpCond
#include <control_flow_ops.h>
Chuyển tiếp đầu vào đến đầu ra.
Bản tóm tắt
Toán tử này biểu thị điều kiện kết thúc vòng lặp được sử dụng bởi các công tắc "xoay" của vòng lặp.
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- đầu vào: Một đại lượng vô hướng boolean, biểu thị vị từ nhánh của Switch op.
Trả về:
-
Output
: Tenor giống như input
.
Thuộc tính công khai
Chức năng công cộng
nút
::tensorflow::Node * node() const
operator::tensorflow::Input() const
toán tử::tenorflow::Đầu ra
operator::tensorflow::Output() 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-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# tensorflow::ops::LoopCond Class Reference\n\ntensorflow::ops::LoopCond\n=========================\n\n`#include \u003ccontrol_flow_ops.h\u003e`\n\nForwards the input to the output.\n\nSummary\n-------\n\nThis operator represents the loop termination condition used by the \"pivot\" switches of a loop.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: A boolean scalar, representing the branch predicate of the [Switch](/versions/r2.3/api_docs/cc/class/tensorflow/ops/switch#classtensorflow_1_1ops_1_1_switch) op.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The same tensor as `input`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [LoopCond](#classtensorflow_1_1ops_1_1_loop_cond_1a6be8a0883ff88ab1db2ec0d77c01e519)`(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)` input)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_loop_cond_1a5467aa1be24cfcdb0ec5b07284a7851c) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_loop_cond_1a6cc2f2f893804a2e4c428cfb7dca231f) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_loop_cond_1a62cad6af676919e5ab5c395339d5fc61)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_loop_cond_1ae3da575a834758e2d6cc5f6ac492cf74)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_loop_cond_1ac9bf4c84de74cbd17a2247902b420592)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### LoopCond\n\n```gdscript\n LoopCond(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\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```"]]