Commit 88eac22a authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

input_options should be popped instead of using `get`.

PiperOrigin-RevId: 405317879
parent bae103c5
......@@ -64,7 +64,7 @@ def make_distributed_dataset(strategy, dataset_or_fn, *args, **kwargs):
if strategy is None:
strategy = tf.distribute.get_strategy()
input_options = kwargs.get("input_options", None)
input_options = kwargs.pop("input_options", None)
if isinstance(dataset_or_fn, tf.data.Dataset):
return strategy.experimental_distribute_dataset(dataset_or_fn,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment