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

Method set_chief_only

tensorpack/callbacks/base.py:211–216  ·  view source on GitHub ↗

Set chief_only property, and returns the callback itself.

(self, v=True)

Source from the content-addressed store, hash-verified

209 self._chief_only = v
210
211 def set_chief_only(self, v=True):
212 """
213 Set chief_only property, and returns the callback itself.
214 """
215 self._chief_only = v
216 return self
217
218 def __str__(self):
219 return type(self).__name__

Callers 2

get_callbacksMethod · 0.80
_setup_graphMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected