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>();
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
Optimizer::Optimizations MakeOptimizations(Args &&... args)
std::unique_ptr< ScopedCpuTensorHandle > m_Weight
A unique pointer to store Weight values.
LayerT * AddLayer(Args &&... args)
Adds a new layer, of type LayerType, to the graph constructed with the arguments passed.
int Connect(InputSlot &destination)
static void Pass(Graph &graph, const Optimizations &optimizations)
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
A layer user-provided data can be bound to (e.g. inputs, outputs).
This layer represents a fully connected operation.
A FullyConnectedDescriptor for the FullyConnectedLayer.
static void ConvertFloat32To16(const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer)
Converts a buffer of FP32 values to FP16, and stores in the given dstFloat16Buffer.
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
BOOST_AUTO_TEST_SUITE_END()
ConvertConstants< Float16ToFloat32, IsFloat32Layer > ConvertConstantsHalfToFloat
void SetTensorInfo(const TensorInfo &tensorInfo) override
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
Get the const output slot handle by slot index.