(rank, axes, batch_size, num_batches)
| 601 | |
| 602 | |
| 603 | def empty_batches(rank, axes, batch_size, num_batches): |
| 604 | data = [] |
| 605 | for _ in range(num_batches): |
| 606 | batch = [] |
| 607 | for _ in range(batch_size): |
| 608 | shape = np.random.randint(1, 10, size=rank) |
| 609 | for a in axes: |
| 610 | shape[a] = 0 |
| 611 | sample = np.empty(shape, dtype=np.float32) |
| 612 | batch.append(sample) |
| 613 | data.append(batch) |
| 614 | return data |
| 615 | |
| 616 | |
| 617 | @nottest |
no test coverage detected