Creates or finds a child frame, and makes data available to the child frame.

    data, frame_name, is_constant=False, parallel_iterations=10, name=None

This op is used together with Exit to create loops in the graph. The unique frame_name is used by the Executor to identify frames. If is_constant is true, output is a constant in the child frame; otherwise it may be changed in the child frame. At most parallel_iterations iterations are run in parallel in the child frame.


  • data: A Tensor. The tensor to be made available to the child frame.
  • frame_name: A string. The name of the child frame.
  • is_constant: An optional bool. Defaults to False. If true, the output is constant within the child frame.
  • parallel_iterations: An optional int. Defaults to 10. The number of iterations allowed to run in parallel.
  • name: A name for the operation (optional).


A Tensor. Has the same type as data.