MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / __getitem__

Method __getitem__

netdissect/sampler.py:32–33  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

30 return len(self.samples)
31
32 def __getitem__(self, key):
33 return self.samples[key]
34
35 def subset(self, new_subset):
36 return FixedSubsetSampler(self.dereference(new_subset))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected