3be6b6d054feb8cfdd6fdeee1df6d138e193aa3d,art/data_generators.py,TFDataGenerator,get_batch,#TFDataGenerator#,200
Before Change
import tensorflow as tf
if isinstance(self.iterator, tf.data.Iterator):
try:
return self.sess.run(self.iterator.get_next())
except tf.errors.OutOfRangeError as err:
raise ValueError("Could not extract next batch. " + str(err))
After Change
if self.iterator_type == "initializable":
return self.sess.run(next_batch)
elif self.iterator_type == "reinitializable":
return self.sess.run(next_batch)
else:
return self.sess.run(next_batch, feed_dict=self.iterator_arg[1])
except (tf.errors.FailedPreconditionError, tf.errors.OutOfRangeError):
if self.iterator_type == "initializable":
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 3be6b6d054feb8cfdd6fdeee1df6d138e193aa3d
Time: 2019-01-28
Author: M.N.Tran@ibm.com
File Name: art/data_generators.py
Class Name: TFDataGenerator
Method Name: get_batch
Project Name: pyprob/pyprob
Commit Name: 2728afcd57721b34f95ba575507a3db6c86c1f4c
Time: 2018-02-21
Author: atilimgunes.baydin@gmail.com
File Name: tests/test_model_remote.py
Class Name:
Method Name:
Project Name: vatlab/SoS
Commit Name: 0eca6cc07bd848239f2b82e62c69b1152e8c36b8
Time: 2016-09-20
Author: ben.bog@gmail.com
File Name: test/test_execute.py
Class Name: TestExecute
Method Name: testOutputExecutable
Project Name: sloria/TextBlob
Commit Name: 103d01636dc48ff589b8c8cea9f8e72f4b41d837
Time: 2015-10-04
Author: sloria1@gmail.com
File Name: tasks.py
Class Name:
Method Name: publish
Project Name: deepdrive/deepdrive
Commit Name: ebe21d04e312fe71f4ce67c86e5bc2d98dfc3b94
Time: 2018-07-08
Author: cquiter@gmail.com
File Name: api/server.py
Class Name:
Method Name: start