RefSelect
tensorflow C++ API
Forwards the index
th element of inputs
to output
.
Summary
Arguments:
- 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:
Output
: The forwarded tensor.
RefSelect block
Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_control_flow_ops.cpp
Argument:
- Scope scope: A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input index: A scalar that determines the input that gets selected.
- Input inputs: A list of ref tensors, one of which will be forwarded to
output
.
Returns:
Output
: The forwarded tensor.
Using Method
※ refselect는 레퍼런스 타입 이므로 assign같은 레퍼런스 타입을 output으로 보내는 변수를 리스트에서 뽑아내는데 유용하다.