MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / train_on_batch

Method train_on_batch

tensorlayer/distributed.py:207–209  ·  view source on GitHub ↗

Train a mini-batch.

(self)

Source from the content-addressed store, hash-verified

205 return zip(self._validation_metrics, metric_sums)
206
207 def train_on_batch(self):
208 """Train a mini-batch."""
209 self._sess.run(self._train_op)
210
211 def train_and_validate_to_end(self, validate_step_size=50):
212 """A helper function that shows how to train and validate a model at the same time.

Calls

no outgoing calls

Tested by

no test coverage detected