| 33 | } |
| 34 | |
| 35 | std::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 |
no test coverage detected