MCPcopy Create free account
hub / github.com/ARM-software/armnn / FloorDivINT32Test

Function FloorDivINT32Test

delegate/test/ElementwiseBinaryTest.cpp:367–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void FloorDivINT32Test()
368{
369 std::vector<int32_t> input0Shape { 1, 1, 2, 2 };
370 std::vector<int32_t> input1Shape { 1 };
371 std::vector<int32_t> expectedOutputShape { 1, 1, 2, 2 };
372
373 std::vector<int> input0Values =
374 {
375 10, -9, -11, 7
376 };
377
378 std::vector<int> input1Values =
379 {
380 -3
381 };
382
383 std::vector<int> expectedOutputValues =
384 {
385 -4, 3, 3, -3
386 };
387
388 ElementwiseBinaryTest<int>(tflite::BuiltinOperator_FLOOR_DIV,
389 tflite::ActivationFunctionType_NONE,
390 ::tflite::TensorType_INT32,
391 input0Shape,
392 input1Shape,
393 expectedOutputShape,
394 input0Values,
395 input1Values,
396 expectedOutputValues);
397}
398
399void MaxFP32Test()
400{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected