f9d495741f7a63b79dcb711be8ba1c761fbc8369,open_seq2seq/utils/funcs.py,,train,#Any#Any#Any#Any#,22

Before Change


  // checkpoint. OR
  // there exists a checkpoint inside our log directory. For example, if we are
  // using --continue_learning and want to overwrite the saved checkpoint
  restoring = load_model_dir or tf.train.latest_checkpoint(checkpoint_dir)
  if restoring:
    scaffold = TransferScaffold(
        local_init_op=tf.group(tf.local_variables_initializer(), init_data_layer)
    )

After Change


  // directory containing the checkpoint we want to load partial or all weights
  // from.. Useful for transer learning or if we do not want to overwrite our
  // checkpoint. 
  restoring = load_model_dir and not tf.train.latest_checkpoint(checkpoint_dir)
  if restoring:
    scaffold = TransferScaffold(
        local_init_op=tf.group(tf.local_variables_initializer(), init_data_layer)
    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: f9d495741f7a63b79dcb711be8ba1c761fbc8369
Time: 2019-07-10
Author: vlavrukhin@nvidia.com
File Name: open_seq2seq/utils/funcs.py
Class Name:
Method Name: train


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 361d87cc6d4fe86c82204becce00f4d595e1c459
Time: 2019-01-09
Author: jasoli@nvidia.com
File Name: open_seq2seq/utils/funcs.py
Class Name:
Method Name: train


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: e3b7b02561d003eae7ca7c5cc117af40873b23e8
Time: 2018-12-13
Author: vlavrukhin@nvidia.com
File Name: open_seq2seq/utils/funcs.py
Class Name:
Method Name: train