(m, n)
| 140 | |
| 141 | # Select a random subset of size m from [0, 1, ..., n-1]. |
| 142 | def _random_subset(m, n): |
| 143 | assert m <= n |
| 144 | return (np.random.permutation(n)[:m]).astype(np.int32) |
| 145 | |
| 146 | def _generate_random_tensors_and_dims(): |
| 147 | a_shape = np.random.random_integers(1, _MAXDIM, rank_a_) |
no test coverage detected