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

Function ToOutputVector

tensorflow/cc/framework/while_gradients.cc:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::vector<Output> ToOutputVector(
36 const std::vector<OutputTensor>& output_tensors) {
37 size_t n = output_tensors.size();
38 std::vector<Output> result;
39 result.reserve(n);
40 for (int i = 0; i < n; ++i) result.push_back(ToOutput(output_tensors[i]));
41 return result;
42}
43
44// The backprop loop counter and main backprop loop run in their own execution
45// frame (conceptually, the main forward loop and forward loop counter run

Callers 1

AddWhileGradientLoopFunction · 0.85

Calls 4

ToOutputFunction · 0.85
sizeMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected