| 175 | } |
| 176 | output[index] = value; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | std::vector<float> generate_torch_cuda_randn( |
| 181 | size_t count, |
| 182 | uint64_t seed, |
| 183 | TorchRandnPrecision precision, |
| 184 | uint64_t start_index) { |
| 185 | std::vector<float> output(count); |
| 186 | fill_torch_cuda_randn(output.data(), output.size(), seed, precision, start_index); |
| 187 | return output; |
| 188 | } |