ab6f9e4c489beea3bec518d60629c0f8af0b6123,opennmt/runner.py,Runner,train,#Runner#Any#,263
Before Change
accum_num_words,
last_report_time)
if step % save_checkpoints_steps == 0 or step == train_steps:
path = checkpoint_manager.save(checkpoint_number=step)
tf.get_logger().info("Saved checkpoint %s", path)
if step == train_steps:
break
After Change
for key, value in six.iteritems(num_words):
accum_num_words[key] += value.numpy()
step = optimizer.iterations.numpy()
if step == last_step:
continue
last_step = step
if step % report_every == 0:
last_report_time = _report_training_status(
step,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: OpenNMT/OpenNMT-tf
Commit Name: ab6f9e4c489beea3bec518d60629c0f8af0b6123
Time: 2019-06-21
Author: guillaume.klein@systrangroup.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: train
Project Name: facebookresearch/pythia
Commit Name: f22814f2405f83179c99f1fd4b895671bbdb124c
Time: 2021-02-24
Author: asg@fb.com
File Name: tools/scripts/features/lmdb_conversion.py
Class Name: LMDBConversion
Method Name: extract
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: ab5f6d6986fc4f1eebc0b5b3c8972daba029954b
Time: 2018-01-18
Author: max.lapan@gmail.com
File Name: ch13/adhoc/wob_clicks.py
Class Name:
Method Name: