| 101 | } |
| 102 | |
| 103 | void test_fill_matches_vector_api() { |
| 104 | std::vector<float> filled(257, 0.0F); |
| 105 | engine::sampling::fill_torch_cuda_randn( |
| 106 | filled.data(), |
| 107 | filled.size(), |
| 108 | 1, |
| 109 | engine::sampling::TorchRandnPrecision::Float32); |
| 110 | const auto generated = engine::sampling::generate_torch_cuda_randn( |
| 111 | filled.size(), |
| 112 | 1, |
| 113 | engine::sampling::TorchRandnPrecision::Float32); |
| 114 | require_vector_close(filled, generated, 0.0F, "fill/vector torch_cuda_randn"); |
| 115 | } |
| 116 | |
| 117 | void test_start_index_matches_full_generation_slice() { |
| 118 | const auto full = engine::sampling::generate_torch_cuda_randn( |
no test coverage detected