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

Method Run

tensorflow/c/c_test_util.cc:501–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void CSession::Run(TF_Status* s) {
502 if (inputs_.size() != input_values_.size()) {
503 ADD_FAILURE() << "Call SetInputs() before Run()";
504 return;
505 }
506 ResetOutputValues();
507 output_values_.resize(outputs_.size(), nullptr);
508
509 const TF_Output* inputs_ptr = inputs_.empty() ? nullptr : &inputs_[0];
510 TF_Tensor* const* input_values_ptr =
511 input_values_.empty() ? nullptr : &input_values_[0];
512
513 const TF_Output* outputs_ptr = outputs_.empty() ? nullptr : &outputs_[0];
514 TF_Tensor** output_values_ptr =
515 output_values_.empty() ? nullptr : &output_values_[0];
516
517 TF_Operation* const* targets_ptr = targets_.empty() ? nullptr : &targets_[0];
518
519 TF_SessionRun(session_, nullptr, inputs_ptr, input_values_ptr, inputs_.size(),
520 outputs_ptr, output_values_ptr, outputs_.size(), targets_ptr,
521 targets_.size(), nullptr, s);
522
523 DeleteInputValues();
524}
525
526void CSession::CloseAndDelete(TF_Status* s) {
527 DeleteInputValues();

Callers 15

TF_Run_HelperFunction · 0.45
TFE_InferShapesFunction · 0.45
TESTFunction · 0.45
RunMinTestFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
ReadTensorFromImageFileFunction · 0.45
SaveImageFunction · 0.45
GetTopDetectionsFunction · 0.45
mainFunction · 0.45

Calls 4

TF_SessionRunFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected