| 76 | } |
| 77 | |
| 78 | TEST(ResizeBilinear, TestResizeBilinear8Bit) { |
| 79 | RandomEngine().seed(38291); |
| 80 | const int kTestsToRun = 1000; |
| 81 | for (int i = 0; i < kTestsToRun; i++) { |
| 82 | const int batch = UniformRandomInt(1, 2); |
| 83 | const int depth = ExponentialRandomPositiveInt(0.9f, 6, 50); |
| 84 | const int input_width = ExponentialRandomPositiveInt(0.9f, 20, 200); |
| 85 | const int input_height = ExponentialRandomPositiveInt(0.9f, 20, 200); |
| 86 | const int output_width = ExponentialRandomPositiveInt(0.9f, 20, 200); |
| 87 | const int output_height = ExponentialRandomPositiveInt(0.9f, 20, 200); |
| 88 | |
| 89 | TestOneResizeBilinear<uint8>(batch, depth, input_width, input_height, |
| 90 | output_width, output_height, 0.025); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | TEST(ResizeBilinear2x2, TestResizeBilinear8Bit) { |
| 95 | RandomEngine().seed(38291); |
nothing calls this directly
no test coverage detected