tf.compat.v1.train.basic_train_loop

Basic loop to train a model.

Calls train_step_fn in a loop to train a model. The function is called as:

train_step_fn(session, *args, **kwargs)

It is passed a tf.compat.v1.Session in addition to args and kwargs. The function typically runs one training step in the session.