| 377 | } |
| 378 | |
| 379 | static bool TF_Run_Inputs(TF_Tensor* const* c_inputs, |
| 380 | std::vector<std::pair<string, Tensor>>* input_pairs, |
| 381 | TF_Status* status) { |
| 382 | const int ninputs = input_pairs->size(); |
| 383 | for (int i = 0; i < ninputs; ++i) { |
| 384 | status->status = TF_TensorToTensor(c_inputs[i], &(*input_pairs)[i].second); |
| 385 | if (TF_GetCode(status) != TF_OK) return false; |
| 386 | } |
| 387 | return true; |
| 388 | } |
| 389 | |
| 390 | // Create an empty tensor of type 'dtype'. 'shape' can be arbitrary, but has to |
| 391 | // result in a zero-sized tensor. |
no test coverage detected