提交 6324e503 编写于 作者: W Wilsin Gosti 提交者: TensorFlower Gardener

#tf-data The default value of `warm_start` should be `None` instead of...

#tf-data The default value of `warm_start` should be `None` instead of `False`. Setting it to `False` as the default value may break the `tf.data.Options` propagation when users set it to `True` somewhere in the input pipeline.

PiperOrigin-RevId: 564585601
上级 4e9db184
......@@ -600,7 +600,7 @@ class Options(options_lib.OptionsBase):
"the expense of requiring more memory to hold prefetched elements "
"between the time of iterator construction and usage."
),
default_factory=lambda: True if test_mode.TEST_MODE else False,
default_factory=lambda: True if test_mode.TEST_MODE else None,
)
threading = options_lib.create_option(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册