| 527 | } |
| 528 | |
| 529 | void TF_SessionPRun_wrapper(TF_Session* session, const char* handle, |
| 530 | const std::vector<TF_Output>& inputs, |
| 531 | const std::vector<PyObject*>& input_ndarrays, |
| 532 | const std::vector<TF_Output>& outputs, |
| 533 | TF_Status* out_status, |
| 534 | std::vector<PyObject*>* py_outputs) { |
| 535 | const std::vector<TF_Operation*> targets; |
| 536 | TF_SessionRun_wrapper_helper(session, handle, |
| 537 | nullptr, // run_options |
| 538 | inputs, input_ndarrays, outputs, targets, |
| 539 | nullptr, // run_metadata |
| 540 | out_status, py_outputs); |
| 541 | // Release any unused ndarray references (see memory management comment in |
| 542 | // TF_SessionRun_wrapper_helper) |
| 543 | ClearDecrefCache(); |
| 544 | } |
| 545 | |
| 546 | std::vector<TF_Output> GetOperationInputs(TF_Operation* oper) { |
| 547 | int num_inputs = TF_OperationNumInputs(oper); |
nothing calls this directly
no test coverage detected