"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "2eebdc2d7a61b10d06bcd87a49cf81f6e75c7ff8"
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): ...@@ -64,7 +64,7 @@ def make_distributed_dataset(strategy, dataset_or_fn, *args, **kwargs):
if strategy is None: if strategy is None:
strategy = tf.distribute.get_strategy() 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): if isinstance(dataset_or_fn, tf.data.Dataset):
return strategy.experimental_distribute_dataset(dataset_or_fn, 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