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

Method should_stop

tensorflow/python/training/supervisor.py:861–869  ·  view source on GitHub ↗

Check if the coordinator was told to stop. See `Coordinator.should_stop()`. Returns: True if the coordinator was told to stop, False otherwise.

(self)

Source from the content-addressed store, hash-verified

859 self._coord.request_stop(ex=ex)
860
861 def should_stop(self):
862 """Check if the coordinator was told to stop.
863
864 See `Coordinator.should_stop()`.
865
866 Returns:
867 True if the coordinator was told to stop, False otherwise.
868 """
869 return self._coord.should_stop()
870
871 def stop_on_exception(self):
872 """Context handler to stop the supervisor when an exception is raised.

Callers 15

trainFunction · 0.95
testManagedSessionMethod · 0.95
trainFunction · 0.45
trainFunction · 0.45
trainFunction · 0.45

Calls

no outgoing calls