جریان تنسور:: عملیات:: RefSelect
#include <control_flow_ops.h>
عنصر index
inputs
را به output
منتقل می کند.
خلاصه
استدلال ها:
- scope: یک شی Scope
- index: یک اسکالر که ورودی انتخاب شده را تعیین می کند.
- ورودی ها: لیستی از تانسورهای مرجع که یکی از آنها به
output
ارسال می شود.
برمیگرداند:
-
Output
: تانسور ارسال شده.
سازندگان و ویرانگرها | |
---|---|
RefSelect (const :: tensorflow::Scope & scope, :: tensorflow::Input index, :: tensorflow::InputList inputs) |
صفات عمومی | |
---|---|
operation | |
output |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
صفات عمومی
عملیات
Operation operation
خروجی
::tensorflow::Output output
توابع عمومی
RefSelect
RefSelect( const ::tensorflow::Scope & scope, ::tensorflow::Input index, ::tensorflow::InputList inputs )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::RefSelect Class Reference\n\ntensorflow::ops::RefSelect\n==========================\n\n`#include \u003ccontrol_flow_ops.h\u003e`\n\nForwards the `index`th element of `inputs` to `output`.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- index: A scalar that determines the input that gets selected.\n- inputs: A list of ref tensors, one of which will be forwarded to `output`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The forwarded tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [RefSelect](#classtensorflow_1_1ops_1_1_ref_select_1abed277c64b2841b7de2598dbaf9e05fe)`(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)` index, ::`[tensorflow::InputList](/versions/r2.3/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` inputs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_ref_select_1a788cafc3e7b5b8f51a360199a0851186) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_ref_select_1a5a8e6cb42d7e6790beddf4a20fd8d02b) | `::`[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_ref_select_1a7941bd675a31248e3ad9eb2e8a66c040)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_ref_select_1a120a72a9abdfba8558928e029515286b)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_ref_select_1a264243efd34cc1e87f84bbd19ae8ae85)`() 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### RefSelect\n\n```gdscript\n RefSelect(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input index,\n ::tensorflow::InputList inputs\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```"]]