8 #include <boost/test/unit_test.hpp> 11 using namespace armnn;
35 BOOST_ASSERT(tensorHandle);
37 BOOST_ASSERT(tensorHandle->GetShape() == tensorShape);
41 BOOST_CHECK(tensorHandle);
43 BOOST_ASSERT(tensorHandle->GetShape() == tensorShape);
47 BOOST_CHECK(tensorHandle);
49 BOOST_ASSERT(tensorHandle->GetShape() == tensorShape);
64 uint32_t origin[4] = { 1, 1, 0, 0 };
66 BOOST_CHECK(subTensor);
67 BOOST_ASSERT(subTensor->GetShape() == subTensorShape);
68 BOOST_ASSERT(subTensor->GetParent() == tensorHandle.get());
84 uint32_t origin[4] = { 0, 0, 1, 1 };
87 BOOST_ASSERT(subTensor ==
nullptr);
102 uint32_t origin[4] = { 1, 1, 0, 0 };
105 BOOST_ASSERT(subTensor ==
nullptr);
119 uint32_t origin[4] = { 1, 1, 0, 0 };
122 BOOST_ASSERT(subTensor ==
nullptr);
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
unsigned int MemorySourceFlags
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, const TensorShape &subTensorShape, const unsigned int *subTensorOrigin) const override
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
This factory creates ClImportTensorHandles that refer to imported memory tensors. ...
BOOST_AUTO_TEST_SUITE_END()
std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override