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

Method training

tensorpack/train/model_desc.py:87–91  ·  view source on GitHub ↗

bool: whether the caller is under a training context or not.

(self)

Source from the content-addressed store, hash-verified

85
86 @property
87 def training(self):
88 """
89 bool: whether the caller is under a training context or not.
90 """
91 return get_current_tower_context().is_training
92
93
94class ModelDesc(ModelDescBase):

Callers 2

get_tensorMethod · 0.45

Calls 1

Tested by

no test coverage detected