Minor fix to type annotations.

PiperOrigin-RevId: 328491975
This commit is contained in:
Florent Altché
2020-08-26 10:05:31 +01:00
committed by Diego de Las Casas
parent 486d8caf21
commit 9bd09fcace
+2 -2
View File
@@ -30,7 +30,7 @@ observations.
import collections
import functools
import os
from typing import Dict, Tuple, Set
from typing import Dict, Optional, Tuple, Set
from acme import wrappers
from dm_control import composer
@@ -778,7 +778,7 @@ def dataset(root_path: str,
shapes: Dict[str, Tuple[int]],
num_threads: int,
batch_size: int,
uint8_features: Set[str] = None,
uint8_features: Optional[Set[str]] = None,
num_shards: int = 100,
shuffle_buffer_size: int = 100000,
sarsa: bool = True) -> tf.data.Dataset: