MCPcopy Create free account
hub / github.com/DanielShalam/BPA / __init__

Method __init__

methods/pt_map/data/dataset.py:65–69  ·  view source on GitHub ↗
(self, sub_meta, cl, transform=transforms.ToTensor(), target_transform=identity)

Source from the content-addressed store, hash-verified

63
64class SubDataset:
65 def __init__(self, sub_meta, cl, transform=transforms.ToTensor(), target_transform=identity):
66 self.sub_meta = sub_meta
67 self.cl = cl
68 self.transform = transform
69 self.target_transform = target_transform
70
71 def __getitem__(self, i):
72 # print( '%d -%d' %(self.cl,i))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected