MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BackPropFrameName

Function BackPropFrameName

tensorflow/cc/framework/while_gradients.cc:50–52  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

48// backprop while loops.
49// TODO(skyewm): make sure this is unique among existing frame names
50string 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

Callers 2

AddBackPropLoopCounterFunction · 0.85
AddWhileGradientLoopFunction · 0.85

Calls 1

StrCatFunction · 0.50

Tested by

no test coverage detected