11 std::unique_ptr<armnn::IWorkload> CreateWorkload<armnn::MinimumQueueDescriptor>(
16 return workloadFactory.CreateMinimum(descriptor, info);
25 unsigned int shape0[] = { 1, 2, 2, 2 };
26 unsigned int shape1[] = { 1, 1, 1, 1 };
28 std::vector<float> input0 = { 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f };
30 std::vector<float> input1 = { 2.f };
32 std::vector<float> output = { 1.f, 2.f, 2.f, 2.f, 2.f, 2.f, 2.f, 2.f };
34 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Float32>(
51 unsigned int shape0[] = { 1, 2, 2, 2 };
52 unsigned int shape1[] = { 1, 1, 1, 1 };
54 std::vector<float> input0 = { 1.f, 6.f, 3.f, 2.f, 8.f, 9.f, 1.f, 10.f };
56 std::vector<float> input1 = { 5.f };
58 std::vector<float> output = { 1.f, 5.f, 3.f, 2.f, 5.f, 5.f, 1.f, 5.f };
60 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Float32>(
77 const unsigned int shape0[] = { 1, 2, 2, 3 };
78 const unsigned int shape1[] = { 1, 1, 1, 3 };
80 std::vector<uint8_t> input0 =
86 std::vector<uint8_t> input1 = { 1, 2, 3 };
88 std::vector<uint8_t> output =
94 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::QAsymmU8>(
103 tensorHandleFactory);
111 using namespace half_float::literal;
113 unsigned int shape[] = { 2, 2, 2, 2 };
115 std::vector<armnn::Half> input0 =
117 1._h, 1._h, 1._h, 1._h, 6._h, 6._h, 6._h, 6._h,
118 3._h, 3._h, 3._h, 3._h, 4._h, 4._h, 4._h, 4._h
121 std::vector<armnn::Half> input1 =
123 2._h, 2._h, 2._h, 2._h, 3._h, 3._h, 3._h, 3._h,
124 4._h, 4._h, 4._h, 4._h, 5._h, 5._h, 5._h, 5._h
127 std::vector<armnn::Half> output
129 1._h, 1._h, 1._h, 1._h, 3._h, 3._h, 3._h, 3._h,
130 3._h, 3._h, 3._h, 3._h, 4._h, 4._h, 4._h, 4._h
133 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Float16>(
142 tensorHandleFactory);
150 using namespace half_float::literal;
152 const unsigned int shape0[] = { 1, 2, 2, 3 };
153 const unsigned int shape1[] = { 1, 1, 1, 1 };
155 std::vector<armnn::Half> input0 =
157 1._h, 2._h, 3._h, 4._h, 5._h, 6._h,
158 7._h, 8._h, 9._h, 10._h, 11._h, 12._h
161 std::vector<armnn::Half> input1 = { 2._h };
163 std::vector<armnn::Half> output =
165 1._h, 2._h, 2._h, 2._h, 2._h, 2._h,
166 2._h, 2._h, 2._h, 2._h, 2._h, 2._h
169 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Float16>(
178 tensorHandleFactory);
186 using namespace half_float::literal;
187 const unsigned int shape0[] = { 1, 2, 2, 3 };
188 const unsigned int shape1[] = { 1, 1, 1, 3 };
190 std::vector<armnn::Half> input0 =
192 1._h, 2._h, 3._h, 4._h, 5._h, 6._h,
193 7._h, 8._h, 9._h, 10._h, 11._h, 12._h
196 std::vector<armnn::Half> input1 = { 1._h, 10._h, 3._h };
198 std::vector<armnn::Half> output =
200 1._h, 2._h, 3._h, 1._h, 5._h, 3._h,
201 1._h, 8._h, 3._h, 1._h, 10._h, 3._h
204 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Float16>(
213 tensorHandleFactory);
221 unsigned int shape[] = { 2, 2, 2, 2 };
223 std::vector<int16_t> input0 =
225 1, 1, 1, 1, 6, 6, 6, 6,
226 3, 3, 3, 3, 4, 4, 4, 4
229 std::vector<int16_t> input1 =
231 2, 2, 2, 2, 3, 3, 3, 3,
232 4, 4, 4, 4, 5, 5, 5, 5
235 std::vector<int16_t> output
237 1, 1, 1, 1, 3, 3, 3, 3,
238 3, 3, 3, 3, 4, 4, 4, 4
241 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::QSymmS16>(
250 tensorHandleFactory);
258 const unsigned int shape0[] = { 1, 2, 2, 3 };
259 const unsigned int shape1[] = { 1, 1, 1, 1 };
261 std::vector<int16_t> input0 =
267 std::vector<int16_t> input1 = { 2 };
269 std::vector<int16_t> output =
275 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::QSymmS16>(
284 tensorHandleFactory);
292 const unsigned int shape0[] = { 1, 2, 2, 3 };
293 const unsigned int shape1[] = { 1, 1, 1, 3 };
295 std::vector<int16_t> input0 =
301 std::vector<int16_t> input1 = { 1, 10, 3 };
303 std::vector<int16_t> output =
309 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::QSymmS16>(
318 tensorHandleFactory);
326 unsigned int shape[] = { 2, 2, 2, 2 };
328 std::vector<int32_t> input0 =
330 1, 1, 1, 1, 6, 6, 6, 6,
331 3, 3, 3, 3, 4, 4, 4, 4
334 std::vector<int32_t> input1 =
336 2, 2, 2, 2, 3, 3, 3, 3,
337 4, 4, 4, 4, 5, 5, 5, 5
340 std::vector<int32_t> output
342 1, 1, 1, 1, 3, 3, 3, 3,
343 3, 3, 3, 3, 4, 4, 4, 4
346 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Signed32>(
355 tensorHandleFactory);
363 const unsigned int shape0[] = { 1, 2, 2, 3 };
364 const unsigned int shape1[] = { 1, 1, 1, 1 };
366 std::vector<int32_t> input0 =
372 std::vector<int32_t> input1 = { 2 };
374 std::vector<int32_t> output =
380 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Signed32>(
389 tensorHandleFactory);
397 const unsigned int shape0[] = { 1, 2, 2, 3 };
398 const unsigned int shape1[] = { 1, 1, 1, 3 };
400 std::vector<int32_t> input0 =
406 std::vector<int32_t> input1 = { 1, 10, 3 };
408 std::vector<int32_t> output =
414 return ElementwiseTestHelper<4, armnn::MinimumQueueDescriptor, armnn::DataType::Signed32>(
423 tensorHandleFactory);
LayerTestResult< float, 4 > MinimumBroadcast1ElementTest1(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< int16_t, 4 > MinimumInt16Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< float, 4 > MinimumBroadcast1ElementTest2(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< int32_t, 4 > MinimumBroadcast1DVectorInt32Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
void IgnoreUnused(Ts &&...)
LayerTestResult< int16_t, 4 > MinimumBroadcast1DVectorInt16Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< int16_t, 4 > MinimumBroadcast1ElementInt16Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< armnn::Half, 4 > MinimumBroadcast1DVectorFloat16Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< armnn::Half, 4 > MinimumFloat16Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr
LayerTestResult< int32_t, 4 > MinimumInt32Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< uint8_t, 4 > MinimumBroadcast1DVectorUint8Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
Contains information about TensorInfos of a layer.
LayerTestResult< armnn::Half, 4 > MinimumBroadcast1ElementFloat16Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
LayerTestResult< int32_t, 4 > MinimumBroadcast1ElementInt32Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)