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.
| 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( |
no test coverage detected