2ac94357935b3bee8ec00c52e91273322ffba642,open_seq2seq/data/text2text/text2text.py,ParallelTextDataLayer,build_graph,#ParallelTextDataLayer#,149

Before Change


          .shard(num_shards=self._num_workers, index=self._worker_id)

    if self.params["shuffle"]:
      _src_tgt_dataset = _src_tgt_dataset\
          .shuffle(buffer_size=self.get_size_in_samples())
    else:
      _src_tgt_dataset = _src_tgt_dataset

    if self.params["repeat"]:

After Change


    if self.params["shuffle"]:
      bf_size = self.get_size_in_samples() if self._shuffle_buffer_size == -1 \
                                           else self._shuffle_buffer_size
      _src_tgt_dataset = _src_tgt_dataset.shuffle(buffer_size=bf_size)
    else:
      _src_tgt_dataset = _src_tgt_dataset

    if self.params["repeat"]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 2ac94357935b3bee8ec00c52e91273322ffba642
Time: 2018-07-24
Author: vnoroozi@nvidia.com
File Name: open_seq2seq/data/text2text/text2text.py
Class Name: ParallelTextDataLayer
Method Name: build_graph


Project Name: keras-team/keras
Commit Name: 2bd4c295d6cae124f2cffce0e7343dc2c18d7eee
Time: 2015-10-04
Author: makoto.matsuyama@gmx.com
File Name: examples/addition_rnn.py
Class Name:
Method Name:


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: f791b89909d8ac69cac38610a4b1ed31d219920d
Time: 2018-08-01
Author: chipn@nvidia.com
File Name: open_seq2seq/data/lm/lmdata.py
Class Name: LMTextDataLayer
Method Name: build_graph