6 #include "../TestUtils.hpp" 11 #include <boost/test/unit_test.hpp> 13 using namespace armnn;
25 unsigned int dims[] = { 4, 1, 1, 1 };
26 std::vector<float> floatWeights{ 1.0f, 2.0f, 3.0f, 4.0f };
34 fc->
m_Weight = std::make_unique<armnn::ScopedCpuTensorHandle>(weights);
35 fc->GetOutputSlot().SetTensorInfo(
info);
41 fc->GetOutputSlot().Connect(output->GetInputSlot(0));
53 Half* data = fc->m_Weight->GetTensor<
Half>();
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.
ConvertConstants< Float32ToFloat16, IsFloat16Layer > ConvertConstantsFloatToHalf
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.
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