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

Function ValidateInputWhileParams

tensorflow/c/c_api.cc:1881–1898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1879}
1880
1881bool ValidateInputWhileParams(const TF_WhileParams& params, TF_Status* s) {
1882 if (params.cond_output.oper == nullptr) {
1883 s->status = InvalidArgument("TF_WhileParams `cond_output` field isn't set");
1884 return false;
1885 }
1886 for (int i = 0; i < params.ninputs; ++i) {
1887 if (params.body_outputs[i].oper == nullptr) {
1888 s->status = InvalidArgument("TF_WhileParams `body_outputs[", i, "]` ",
1889 "field isn't set");
1890 return false;
1891 }
1892 }
1893 if (params.name == nullptr) {
1894 s->status = InvalidArgument("TF_WhileParams `name` field is null");
1895 return false;
1896 }
1897 return true;
1898}
1899
1900#endif // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
1901

Callers 1

TF_FinishWhileHelperFunction · 0.85

Calls 1

InvalidArgumentFunction · 0.85

Tested by

no test coverage detected