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

Function TF_Run_Inputs

tensorflow/c/c_api.cc:379–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379static 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.

Callers 4

TF_RunFunction · 0.85
TF_PRunFunction · 0.85
TF_SessionRunFunction · 0.85
TF_SessionPRunFunction · 0.85

Calls 3

TF_TensorToTensorFunction · 0.85
TF_GetCodeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected