Link Search Menu Expand Document

LoopCond


tensorflow C++ API

tensorflow::ops::LoopCond

Forwards the input to the output.


Summary

This operator represents the loop termination condition used by the “pivot” switches of a loop.

Arguments:

  • scope: A Scope object
  • input: A boolean scalar, representing the branch predicate of the Switch op.

Returns:

  • Output : The same tensor as input.

LoopCond 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 input : A boolean scalar, representing the branch predicate of the Switch op.

Return:

  • Output output : The same tensor as input.

Using Method

※ loopcond는 bool타입의 tensor를 받아서 output으로 내보내고, switch블록(또는 refswitch)에 사용 된다.