| 52 | namespace { |
| 53 | |
| 54 | void zero_buffers(XlaCompiledCpuFunction* computation) { |
| 55 | for (int i = 0; i < computation->num_args(); ++i) { |
| 56 | memset(computation->arg_data(i), 0, computation->arg_size(i)); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // Trivial test that runs the generated function to ensure it doesn't crash. |
| 61 | TEST(TEST_NAME, NoCrash) { |