80373cedf76f85b47de78080712f508a46c5345c,open_seq2seq/models/text2text_test.py,BasicText2TextWithAttentionTest,test_train,#BasicText2TextWithAttentionTest#,22
Before Change
model.compile()
with self.test_session(use_gpu=True) as sess:
tf.global_variables_initializer().run()
for num in range(0, 2):
for i, model_dict in enumerate(model.data_layer.iterate_one_epoch()):
loss, _ = sess.run(
[model.loss, model.train_op],
feed_dict=model_dict,
)
class BasicText2TextWithAttentionTestOnHorovod(tf.test.TestCase):
def setUp(self):
print("Setting Up BasicSeq2SeqWithAttention on Horovod")
create_data(train_corpus_size=500)
After Change
tf.global_variables_initializer().run()
sess.run(model.get_data_layer().iterator.initializer)
while True:
try:
loss, _ = sess.run(
[model.loss, model.train_op]
)
except tf.errors.OutOfRangeError:
break
step += 1
if step >=25:
break
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 80373cedf76f85b47de78080712f508a46c5345c
Time: 2018-05-16
Author: okuchaiev@nvidia.com
File Name: open_seq2seq/models/text2text_test.py
Class Name: BasicText2TextWithAttentionTest
Method Name: test_train
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 80373cedf76f85b47de78080712f508a46c5345c
Time: 2018-05-16
Author: okuchaiev@nvidia.com
File Name: open_seq2seq/models/text2text_test.py
Class Name: BasicText2TextWithAttentionTestOnHorovod
Method Name: test_train
Project Name: deepchem/deepchem
Commit Name: ed7782f0f59f1eef6453f47633fe9e15bda00f84
Time: 2017-03-23
Author: peter.eastman@gmail.com
File Name: deepchem/models/tensorflow_models/__init__.py
Class Name: TensorflowGraphModel
Method Name: fit