mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-05-10 05:17:46 +08:00
Minor fix to type annotations.
PiperOrigin-RevId: 328491975
This commit is contained in:
committed by
Diego de Las Casas
parent
486d8caf21
commit
9bd09fcace
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user