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

Method CheckExternalState

tensorflow/core/kernels/data/captured_function.cc:498–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496bool CapturedFunction::IsStateful() const { return !CheckExternalState().ok(); }
497
498Status CapturedFunction::CheckExternalState() const {
499 for (const auto& name : lib_def()->ListFunctionNames()) {
500 TF_RETURN_IF_ERROR(
501 IsFunctionStateful(*lib_def(), *(lib_def()->Find(name))));
502 }
503 return Status::OK();
504}
505
506namespace {
507class CallFrameBase : public CallFrameInterface {

Callers

nothing calls this directly

Calls 3

ListFunctionNamesMethod · 0.80
IsFunctionStatefulFunction · 0.70
FindMethod · 0.45

Tested by

no test coverage detected