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

Method CheckExternalState

tensorflow/core/framework/dataset.h:735–740  ·  view source on GitHub ↗

Indicates whether the dataset depends on any external state. If so, the method returns `errors::FailedPrecondition` with a message that identifies the external state. Otherwise, the method returns `Status::OK()`. TODO(jsimsa): Make this method pure virtual once all `DatasetBase` implementations have an override.

Source from the content-addressed store, hash-verified

733 // TODO(jsimsa): Make this method pure virtual once all `DatasetBase`
734 // implementations have an override.
735 virtual Status CheckExternalState() const {
736 if (IsStateful()) {
737 return errors::FailedPrecondition("Dataset cannot be serialized.");
738 }
739 return Status::OK();
740 }
741
742 protected:
743 friend Status AsGraphDef(

Callers 1

SaveMethod · 0.45

Calls 2

IsStatefulFunction · 0.85
FailedPreconditionFunction · 0.85

Tested by

no test coverage detected