8 #include <doctest/doctest.h> 17 CHECK(m_LayerName ==
nullptr);
19 else if (m_LayerName ==
nullptr)
21 CHECK(name ==
nullptr);
25 CHECK_EQ(std::string(m_LayerName), std::string(name));
31 CHECK(layer !=
nullptr);
43 const unsigned char* expectedPtr =
static_cast<const unsigned char*
>(expected.
GetMemoryArea());
44 const unsigned char* actualPtr =
static_cast<const unsigned char*
>(actual.
GetMemoryArea());
45 for (
unsigned int i = 0; i < expected.
GetNumBytes(); i++)
47 CHECK(*(expectedPtr + i) == *(actualPtr + i));
void CheckLayerName(const char *name)
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
void CheckLayerPointer(const IConnectableLayer *layer)
unsigned int GetNumElements() const
MemoryType GetMemoryArea() const
Copyright (c) 2021 ARM Limited and Contributors.
void CheckConstTensors(const ConstTensor &expected, const ConstTensor &actual)
bool has_value() const noexcept
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
const TensorInfo & GetInfo() const
unsigned int GetNumDimensions() const
void CheckOptionalConstTensors(const Optional< ConstTensor > &expected, const Optional< ConstTensor > &actual)
unsigned int GetNumBytes() const