MCPcopy Create free account
hub / github.com/chaoshangcs/GTS / _wrapper

Method _wrapper

lib/utils.py:40–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 self.current_ind = 0
39
40 def _wrapper():
41 while self.current_ind < self.num_batch:
42 start_ind = self.batch_size * self.current_ind
43 end_ind = min(self.size, self.batch_size * (self.current_ind + 1))
44 x_i = self.xs[start_ind: end_ind, ...]
45 y_i = self.ys[start_ind: end_ind, ...]
46 yield (x_i, y_i)
47 self.current_ind += 1
48
49 return _wrapper()
50

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected