This commit is contained in:
Shreyansh Pathak 2023-07-17 21:40:14 -05:00 committed by GitHub
commit ef7e418753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ def data_record_input_fn(
if initializable:
# when the data parsing dpends on some HashTable or Tensor, the iterator is initalizable and
# therefore we need to be run explicitly
# therefore it needs to be run explicitly
iterator = dataset.make_initializable_iterator()
tf.add_to_collection(tf.GraphKeys.TABLE_INITIALIZERS, iterator.initializer)
else: