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.
Kiểm soát hoạt động luồng
Bản tóm tắt
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,["# Control Flow Ops\n================\n\nSummary\n-------\n\n| ### Classes ||\n|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|\n| [tensorflow::ops::Abort](/versions/r2.1/api_docs/cc/class/tensorflow/ops/abort) | Raise a exception to abort the process when called. |\n| [tensorflow::ops::ControlTrigger](/versions/r2.1/api_docs/cc/class/tensorflow/ops/control-trigger) | Does nothing. |\n| [tensorflow::ops::LoopCond](/versions/r2.1/api_docs/cc/class/tensorflow/ops/loop-cond) | Forwards the input to the output. |\n| [tensorflow::ops::Merge](/versions/r2.1/api_docs/cc/class/tensorflow/ops/merge) | Forwards the value of an available tensor from `inputs` to `output`. |\n| [tensorflow::ops::NextIteration](/versions/r2.1/api_docs/cc/class/tensorflow/ops/next-iteration) | Makes its input available to the next iteration. |\n| [tensorflow::ops::RefNextIteration](/versions/r2.1/api_docs/cc/class/tensorflow/ops/ref-next-iteration) | Makes its input available to the next iteration. |\n| [tensorflow::ops::RefSelect](/versions/r2.1/api_docs/cc/class/tensorflow/ops/ref-select) | Forwards the `index`th element of `inputs` to `output`. |\n| [tensorflow::ops::RefSwitch](/versions/r2.1/api_docs/cc/class/tensorflow/ops/ref-switch) | Forwards the ref tensor `data` to the output port determined by `pred`. |\n| [tensorflow::ops::Switch](/versions/r2.1/api_docs/cc/class/tensorflow/ops/switch) | Forwards `data` to the output port determined by `pred`. |"]]