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

Function ValidateConstWhileParams

tensorflow/c/c_api.cc:1867–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1865}
1866
1867bool ValidateConstWhileParams(const TF_WhileParams& params, TF_Status* s) {
1868 if (params.cond_graph == nullptr || params.body_graph == nullptr ||
1869 params.cond_graph->parent == nullptr ||
1870 params.cond_graph->parent != params.body_graph->parent ||
1871 params.cond_graph->parent_inputs != params.body_graph->parent_inputs ||
1872 params.ninputs <= 0 || params.cond_inputs == nullptr ||
1873 params.body_inputs == nullptr || params.body_outputs == nullptr) {
1874 s->status = InvalidArgument(
1875 "TF_WhileParams must be created by successful TF_NewWhile() call");
1876 return false;
1877 }
1878 return true;
1879}
1880
1881bool ValidateInputWhileParams(const TF_WhileParams& params, TF_Status* s) {
1882 if (params.cond_output.oper == nullptr) {

Callers 1

TF_FinishWhileFunction · 0.85

Calls 1

InvalidArgumentFunction · 0.85

Tested by

no test coverage detected