Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self,
data_path: str,
index_path: typing.Union[str, None],
description: typing.Union[typing.List[str], typing.Dict[str, str], None] = None,
shuffle_queue_size: typing.Optional[int] = None,
transform: typing.Callable[[dict], typing.Any] = None
) -> None:
super(TFRecordDataset, self).__init__()
self.data_path = data_path
self.index_path = index_path
self.description = description
self.shuffle_queue_size = shuffle_queue_size
self.transform = transform or (lambda x: x)