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

Function Fill4dTest

delegate/test/FillTest.cpp:54–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void Fill4dTest(tflite::BuiltinOperator fillOperatorCode = tflite::BuiltinOperator_FILL,
55 float fill = 3.0f )
56{
57 std::vector<int32_t> inputShape { 4 };
58 std::vector<int32_t> tensorShape { 2, 2, 4, 4 };
59 std::vector<float> expectedOutputValues = { fill, fill, fill, fill,
60 fill, fill, fill, fill,
61 fill, fill, fill, fill,
62 fill, fill, fill, fill,
63
64 fill, fill, fill, fill,
65 fill, fill, fill, fill,
66 fill, fill, fill, fill,
67 fill, fill, fill, fill,
68
69 fill, fill, fill, fill,
70 fill, fill, fill, fill,
71 fill, fill, fill, fill,
72 fill, fill, fill, fill,
73
74 fill, fill, fill, fill,
75 fill, fill, fill, fill,
76 fill, fill, fill, fill,
77 fill, fill, fill, fill };
78
79 FillTest<float>(fillOperatorCode,
80 ::tflite::TensorType_FLOAT32,
81 inputShape,
82 tensorShape,
83 expectedOutputValues,
84 fill);
85}
86
87void FillInt32Test(tflite::BuiltinOperator fillOperatorCode = tflite::BuiltinOperator_FILL,
88 int32_t fill = 2 )

Callers 1

FillTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected