Fix handling of InvalidArgumentError in training loop

X-DeepSpeech: NOBUILD
This commit is contained in:
Reuben Morais 2020-01-08 17:10:47 +00:00 committed by GitHub
parent 1dfba839ea
commit f6cd28ba2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -602,8 +602,10 @@ def train():
feed_dict=feed_dict)
except tf.errors.InvalidArgumentError as err:
if FLAGS.augmentation_sparse_warp:
log_info("skip sparse warp error: {}".format(err))
log_info("Ignoring sparse warp error: {}".format(err))
continue
else:
raise
except tf.errors.OutOfRangeError:
break