MCPcopy Index your code
hub / github.com/tensorflow/datasets / get

Method get

tensorflow_datasets/core/features/features_dict.py:43–47  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

41 self.wrapped_mapping = d
42
43 def get(self, key: str):
44 if self.wrapped_mapping and key in self.wrapped_mapping:
45 self.count += 1
46 return self.wrapped_mapping[key]
47 return None
48
49
50class FeaturesDict(top_level_feature.TopLevelFeature):

Callers 15

setup.pyFile · 0.80
patched_funcFunction · 0.80
get_annotationsMethod · 0.80
_generate_examplesMethod · 0.80
builder_from_filesFunction · 0.80
loadFunction · 0.80
get_splitMethod · 0.80
from_tfds_nameMethod · 0.80
get_default_data_dirFunction · 0.80
constants.pyFile · 0.80

Calls

no outgoing calls

Tested by 15

patched_funcFunction · 0.64
test_merge_multipleMethod · 0.64
_test_extractMethod · 0.64
test_gzipMethod · 0.64
test_gzip2Method · 0.64
test_bzip2Method · 0.64
test_wrong_methodMethod · 0.64
test_okMethod · 0.64
test_drive_no_cookiesMethod · 0.64
test_http_errorMethod · 0.64
test_bad_http_statusMethod · 0.64