Fix typo in deprecation warning string.

PiperOrigin-RevId: 238308329
This commit is contained in:
A. Unique TensorFlower 2019-03-13 14:23:31 -07:00 committed by TensorFlower Gardener
parent 7edbcf25c1
commit ace3ad93dc

View File

@ -56,7 +56,7 @@ class _SlideDataset(dataset_ops.UnaryDataset):
None, "stride is deprecated, use window_shift instead", "stride") None, "stride is deprecated, use window_shift instead", "stride")
@deprecation.deprecated( @deprecation.deprecated(
None, "Use `tf.data.Dataset.window(size=window_size, shift=window_shift, " None, "Use `tf.data.Dataset.window(size=window_size, shift=window_shift, "
"stride=window_stride).flat_map(lambda x: x.batch(window.size))` " "stride=window_stride).flat_map(lambda x: x.batch(window_size))` "
"instead.") "instead.")
def sliding_window_batch(window_size, def sliding_window_batch(window_size,
stride=None, stride=None,