| 205 | } // namespace |
| 206 | |
| 207 | int main() { |
| 208 | try { |
| 209 | test_float32_matches_torch_cuda(); |
| 210 | test_bfloat16_matches_torch_cuda(); |
| 211 | test_fill_matches_vector_api(); |
| 212 | test_start_index_matches_full_generation_slice(); |
| 213 | test_uniform_matches_torch_cuda(); |
| 214 | test_tensor_iterator_exponential_matches_torch_cuda(); |
| 215 | test_empty_null_output_is_allowed(); |
| 216 | } catch (const std::exception & error) { |
| 217 | std::cerr << error.what() << '\n'; |
| 218 | return 1; |
| 219 | } |
| 220 | std::cout << "torch_random_test passed\n"; |
| 221 | return 0; |
| 222 | } |
nothing calls this directly
no test coverage detected