The backprop loop counter and main backprop loop run in their own execution frame (conceptually, the main forward loop and forward loop counter run together in a frame, then the backprop loop counter and backprop loop run together in a different frame). This returns the frame name to use for the backprop while loops. TODO(skyewm): make sure this is unique among existing frame names
| 48 | // backprop while loops. |
| 49 | // TODO(skyewm): make sure this is unique among existing frame names |
| 50 | string BackPropFrameName(const string& forward_frame_name) { |
| 51 | return strings::StrCat(forward_frame_name, "_backprop"); |
| 52 | } |
| 53 | |
| 54 | // Creates a loop that counts the number of iterations performed by the |
| 55 | // while loop associated with `while_ctx`. The returned output yields the |
no test coverage detected