10 #include <doctest/doctest.h> 14 using namespace armnn;
16 TEST_CASE(
"ImportTensorFactoryAskedToCreateManagedTensorThrowsException")
28 TEST_CASE(
"ImportTensorFactoryCreateMallocTensorHandle")
55 TEST_CASE(
"CreateSubtensorOfImportTensor")
67 uint32_t origin[4] = { 1, 1, 0, 0 };
71 ARMNN_ASSERT(subTensor->GetParent() == tensorHandle.get());
74 TEST_CASE(
"CreateSubtensorNonZeroXYIsInvalid")
87 uint32_t origin[4] = { 0, 0, 1, 1 };
93 TEST_CASE(
"CreateSubtensorXYMustMatchParent")
105 uint32_t origin[4] = { 1, 1, 0, 0 };
111 TEST_CASE(
"CreateSubtensorMustBeSmallerThanParent")
122 uint32_t origin[4] = { 1, 1, 0, 0 };
unsigned int MemorySourceFlags
Copyright (c) 2021 ARM Limited and Contributors.
TEST_SUITE("ClImportTensorHandleFactoryTests")
std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, const TensorShape &subTensorShape, const unsigned int *subTensorOrigin) const override
#define ARMNN_ASSERT(COND)
This factory creates ClImportTensorHandles that refer to imported memory tensors. ...
std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override