6 #include "../TestUtils.hpp" 10 #include <boost/test/unit_test.hpp> 22 unsigned int dims[] = { 4, 1, 1, 1 };
23 std::vector<float> convWeightsData{ 1.f, 2.f, 3.f, 4.f };
24 std::vector<uint16_t> halfWeights(4);
34 fc->
m_Weight = std::make_unique<armnn::ScopedCpuTensorHandle>(weights);
35 fc->GetOutputSlot().SetTensorInfo(info);
41 fc->GetOutputSlot().Connect(output->GetInputSlot(0));
53 float* data = fc->m_Weight->GetTensor<
float>();
std::unique_ptr< ScopedCpuTensorHandle > m_Weight
A unique pointer to store Weight values.
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
LayerT * AddLayer(Args &&... args)
Adds a new layer, of type LayerType, to the graph constructed with the arguments passed.
static void Pass(Graph &graph, const Optimizations &optimizations)
int Connect(InputSlot &destination)
This layer represents a fully connected operation.
ConvertConstants< Float16ToFloat32, IsFloat32Layer > ConvertConstantsHalfToFloat
static void ConvertFloat32To16(const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer)
void SetTensorInfo(const TensorInfo &tensorInfo) override
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
A FullyConnectedDescriptor for the FullyConnectedLayer.
A layer user-provided data can be bound to (e.g. inputs, outputs).
Optimizer::Optimizations MakeOptimizations(Args &&... args)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
const OutputSlot & GetOutputSlot(unsigned int index=0) const override