MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _trigger

Method _trigger

tensorpack/callbacks/misc.py:65–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 logger.info("Create a file '{}' to open {} shell.".format(file, shell))
64
65 def _trigger(self):
66 if os.path.isfile(self._file):
67 logger.info("File {} exists, entering shell.".format(self._file))
68 self._inject()
69
70 def _inject(self):
71 trainer = self.trainer # noqa

Callers

nothing calls this directly

Calls 2

_injectMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected