Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::RefSelect
#include <control_flow_ops.h>
Forwards the index
th element of inputs
to output
.
Summary
Args:
- scope: A Scope object
- index: A scalar that determines the input that gets selected.
- inputs: A list of ref tensors, one of which will be forwarded to
output
.
Returns:
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],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\nArgs:\n\n- scope: A [Scope](/versions/r2.14/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.14/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.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` index, ::`[tensorflow::InputList](/versions/r2.14/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.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_ref_select_1a5a8e6cb42d7e6790beddf4a20fd8d02b) | `::`[tensorflow::Output](/versions/r2.14/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```"]]