MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / __len__

Method __len__

functions.py:96–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.device = device
95
96 def __len__(self):
97 return len(self.occ)
98
99 def __getitem__(self, idx): # occ: batch, seq, node
100 output_occ = torch.transpose(self.occ[idx, :, :], 0, 1).to(self.device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected