(b)
| 78 | # Generates random input and targets data for the model, where `b` is |
| 79 | # batch size. |
| 80 | def generate_data(b): |
| 81 | return ( |
| 82 | torch.randn(b, 3, 128, 128).cuda(), |
| 83 | torch.randint(1000, (b,)).cuda(), |
| 84 | ) |
| 85 | |
| 86 | |
| 87 | N_ITERS = 10 |
no outgoing calls
no test coverage detected