MCPcopy Create free account
hub / github.com/tensorflow/datasets / _get_dataset_keys

Function _get_dataset_keys

tensorflow_datasets/d4rl/dataset_utils.py:248–257  ·  view source on GitHub ↗

Gets the keys present in the D4RL dataset.

(h5file)

Source from the content-addressed store, hash-verified

246
247
248def _get_dataset_keys(h5file):
249 """Gets the keys present in the D4RL dataset."""
250 keys = []
251
252 def visitor(name, item):
253 if isinstance(item, h5py.Dataset):
254 keys.append(name)
255
256 h5file.visititems(visitor)
257 return keys
258
259
260def read_d4rl_dataset(file_path: str):

Callers 1

read_d4rl_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected