MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/lite/kernels/internal/resize_bilinear_test.cc:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78TEST(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
94TEST(ResizeBilinear2x2, TestResizeBilinear8Bit) {
95 RandomEngine().seed(38291);

Callers

nothing calls this directly

Calls 3

UniformRandomIntFunction · 0.85
seedMethod · 0.45

Tested by

no test coverage detected