6 #include <boost/test/unit_test.hpp> 18 else if (m_LayerName ==
nullptr)
24 BOOST_CHECK_EQUAL(m_LayerName, name);
42 const unsigned char* expectedPtr =
static_cast<const unsigned char*
>(expected.
GetMemoryArea());
43 const unsigned char* actualPtr =
static_cast<const unsigned char*
>(actual.
GetMemoryArea());
44 for (
unsigned int i = 0; i < expected.
GetNumBytes(); i++)
46 BOOST_CHECK(*(expectedPtr + i) == *(actualPtr + i));
unsigned int GetNumBytes() const
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
unsigned int GetNumElements() const
void CheckOptionalConstTensors(const Optional< ConstTensor > &expected, const Optional< ConstTensor > &actual)
void CheckLayerName(const char *name)
unsigned int GetNumDimensions() const
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
void CheckLayerPointer(const IConnectableLayer *layer)
void CheckConstTensors(const ConstTensor &expected, const ConstTensor &actual)
const TensorInfo & GetInfo() const
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
MemoryType GetMemoryArea() const
bool has_value() const noexcept