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

Function TF_FinishWhile

tensorflow/c/c_api.cc:2046–2059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2044#endif // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
2045
2046void TF_FinishWhile(const TF_WhileParams* params, TF_Status* status,
2047 TF_Output* outputs) {
2048#if defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
2049 status->status = tensorflow::errors::Unimplemented(
2050 "Creating while loops is not supported on mobile. File a bug at "
2051 "https://github.com/tensorflow/tensorflow/issues if this feature is "
2052 "important to you");
2053#else
2054 // If it appears the caller created or modified `params`, don't free resources
2055 if (!ValidateConstWhileParams(*params, status)) return;
2056 TF_FinishWhileHelper(params, status, outputs);
2057 FreeWhileResources(params);
2058#endif // defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
2059}
2060
2061void TF_AbortWhile(const TF_WhileParams* params) { FreeWhileResources(params); }
2062

Callers 5

ExpectOKMethod · 0.85
ExpectErrorMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 4

UnimplementedFunction · 0.85
ValidateConstWhileParamsFunction · 0.85
TF_FinishWhileHelperFunction · 0.85
FreeWhileResourcesFunction · 0.85

Tested by 4

ExpectOKMethod · 0.68
ExpectErrorMethod · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68