The tf.data is working on changes which will make it no longer possible to set tf.data.Options
by mutating tf.data.Dataset.options()
. In preparation for this change, we plan to make the value returned by tf.data.Dataset.options()
immutable. We have identified that the code in this CL would be affected and fix it beforehand.
PiperOrigin-RevId: 361202813 Change-Id: Ib383fa360d9e80cddd3cdcae784bd0db75393d8c
This commit is contained in:
parent
e9dac2c6f8
commit
435c155dbe
@ -171,7 +171,7 @@ class DatasetBenchmarkBase(test.Benchmark):
|
||||
|
||||
# The options that have been applied to the dataset are preserved so that
|
||||
# they are not overwritten while benchmarking.
|
||||
options = dataset.options()
|
||||
options = dataset_ops.Options()
|
||||
options.experimental_optimization.apply_default_optimizations = (
|
||||
apply_default_optimizations)
|
||||
dataset = dataset.with_options(options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user