MCPcopy Create free account
hub / github.com/apple/ml-pointersect / test2

Method test2

tests/pointersect/pr/test_naive.py:141–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 )
140
141 def test2(self):
142 max_b = 100
143 max_n = 50
144 max_m = 50
145 max_grid_size=30
146 for i in range(10):
147 print(f'{i}')
148 seed = i
149 torch.manual_seed(seed)
150 random.seed(seed)
151 np.random.seed(seed)
152 self.test(
153 b=np.random.randint(max_b) + 1,
154 n=np.random.randint(max_n) + 1,
155 m=np.random.randint(max_m) + 1,
156 max_grid_size=np.random.randint(max_grid_size) + 1,
157 seed=seed,
158 )
159
160
161if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

testMethod · 0.95

Tested by

no test coverage detected