Utility function for converting to internal C++ datatypes.
| 33 | |
| 34 | // Utility function for converting to internal C++ datatypes. |
| 35 | std::vector<OutputTensor> ToOutputTensors(const std::vector<Output>& outputs) { |
| 36 | std::vector<OutputTensor> result(outputs.size()); |
| 37 | for (int i = 0; i < outputs.size(); ++i) { |
| 38 | result[i] = ToOutputTensor(outputs[i]); |
| 39 | } |
| 40 | return result; |
| 41 | } |
| 42 | |
| 43 | // Utility function for converting to internal C++ datatypes. |
| 44 | std::vector<Node*> ToNodes(const std::vector<Output>& outputs) { |
no test coverage detected