()
| 384 | w = [0.1, 0.2, 0.3, 0.4] |
| 385 | @TinyJit |
| 386 | def sample_three(): return Tensor(w).multinomial(3, replacement=False).realize() |
| 387 | |
| 388 | tiny_draws = np.array([sample_three().numpy() for _ in range(400)]) |
| 389 | torch_draws = np.array([torch.tensor(w).multinomial(3, replacement=False).numpy() for _ in range(400)]) |
nothing calls this directly
no test coverage detected