MCPcopy
hub / github.com/pytorch/vision / get

Method get

scripts/release_notes/retrieve_prs_data.py:146–151  ·  view source on GitHub ↗
(self, commit)

Source from the content-addressed store, hash-verified

144 self.data = self.read_from_disk()
145
146 def get(self, commit):
147 if commit not in self.data.keys():
148 # Fetch and cache the data
149 self.data[commit] = get_features(commit)
150 self.write_to_disk()
151 return self.data[commit]
152
153 def read_from_disk(self):
154 with open(self.path) as f:

Callers 15

mainFunction · 0.95
setup.pyFile · 0.80
find_libraryFunction · 0.80
disable_weight_loadingFunction · 0.80
test_inception_v3_evalFunction · 0.80
test_googlenet_evalFunction · 0.80
test_segmentation_modelFunction · 0.80
test_detection_modelFunction · 0.80
test_video_modelFunction · 0.80
inject_fake_dataMethod · 0.80

Calls 2

write_to_diskMethod · 0.95
get_featuresFunction · 0.85

Tested by 15

disable_weight_loadingFunction · 0.64
test_inception_v3_evalFunction · 0.64
test_googlenet_evalFunction · 0.64
test_segmentation_modelFunction · 0.64
test_detection_modelFunction · 0.64
test_video_modelFunction · 0.64
inject_fake_dataMethod · 0.64
inject_fake_dataMethod · 0.64
inject_fake_dataMethod · 0.64
inject_fake_dataMethod · 0.64