|
25.11
|
#include <ParserPrototxtFixture.hpp>
Public Member Functions | |
| ARMNN_NO_DEPRECATE_WARN_BEGIN | ParserPrototxtFixture () |
| template<std::size_t NumOutputDimensions> | |
| void | RunTest (const std::vector< float > &inputData, const std::vector< float > &expectedOutputData) |
| Executes the network with the given input tensor and checks the result against the given output tensor. | |
| template<std::size_t NumOutputDimensions> | |
| void | RunComparisonTest (const std::map< std::string, std::vector< float > > &inputData, const std::map< std::string, std::vector< uint8_t > > &expectedOutputData) |
| Executes the network with the given input tensor and checks the result against the given output tensor. | |
| template<std::size_t NumOutputDimensions, typename T = float> | |
| void | RunTest (const std::map< std::string, std::vector< float > > &inputData, const std::map< std::string, std::vector< T > > &expectedOutputData) |
| Executes the network with the given input tensors and checks the results against the given output tensors. | |
| ARMNN_NO_DEPRECATE_WARN_END void | SetupSingleInputSingleOutput (const std::string &inputName, const std::string &outputName) |
| Parses and loads the network defined by the m_Prototext string. | |
| void | SetupSingleInputSingleOutput (const armnn::TensorShape &inputTensorShape, const std::string &inputName, const std::string &outputName) |
| void | SetupSingleInputSingleOutput (const armnn::TensorShape &inputTensorShape, const armnn::TensorShape &outputTensorShape, const std::string &inputName, const std::string &outputName) |
| void | Setup (const std::map< std::string, armnn::TensorShape > &inputShapes, const std::vector< std::string > &requestedOutputs) |
| void | Setup (const std::map< std::string, armnn::TensorShape > &inputShapes) |
| void | Setup () |
| armnn::IOptimizedNetworkPtr | SetupOptimizedNetwork (const std::map< std::string, armnn::TensorShape > &inputShapes, const std::vector< std::string > &requestedOutputs) |
Public Attributes | |
| std::string | m_Prototext |
| std::unique_ptr< TParser, void(*)(TParser *parser)> | m_Parser |
| armnn::IRuntimePtr | m_Runtime |
| armnn::NetworkId | m_NetworkIdentifier |
| armnn::TensorShape | m_SingleOutputShape |
| This will store the output shape so it don't need to be passed to the single-input-single-output overload of RunTest(). | |
| std::string | m_SingleInputName |
| If the single-input-single-output overload of Setup() is called, these will store the input and output name so they don't need to be passed to the single-input-single-output overload of RunTest(). | |
| std::string | m_SingleOutputName |
Definition at line 24 of file ParserPrototxtFixture.hpp.
|
inline |
Definition at line 27 of file ParserPrototxtFixture.hpp.
References m_NetworkIdentifier, m_Parser, and m_Runtime.
| void RunComparisonTest | ( | const std::map< std::string, std::vector< float > > & | inputData, |
| const std::map< std::string, std::vector< uint8_t > > & | expectedOutputData ) |
Executes the network with the given input tensor and checks the result against the given output tensor.
Calls RunTest with output type of uint8_t for checking comparison operators.
Definition at line 198 of file ParserPrototxtFixture.hpp.
References RunTest().
| void RunTest | ( | const std::map< std::string, std::vector< float > > & | inputData, |
| const std::map< std::string, std::vector< T > > & | expectedOutputData ) |
Executes the network with the given input tensors and checks the results against the given output tensors.
This overload supports multiple inputs and multiple outputs, identified by name.
Definition at line 207 of file ParserPrototxtFixture.hpp.
References CHECK_LOCATION, m_NetworkIdentifier, m_Parser, m_Runtime, and m_SingleOutputShape.
| void RunTest | ( | const std::vector< float > & | inputData, |
| const std::vector< float > & | expectedOutputData ) |
Executes the network with the given input tensor and checks the result against the given output tensor.
This overload assumes that the network has a single input and a single output.
Definition at line 190 of file ParserPrototxtFixture.hpp.
References m_SingleInputName, m_SingleOutputName, and RunTest().
Referenced by RunComparisonTest(), and RunTest().
| void Setup | ( | ) |
Definition at line 160 of file ParserPrototxtFixture.hpp.
References ARMNN_NO_DEPRECATE_WARN_BEGIN, ARMNN_NO_DEPRECATE_WARN_END, CHECK_LOCATION, armnn::CpuRef, m_NetworkIdentifier, m_Parser, m_Prototext, m_Runtime, armnn::Optimize(), and armnn::Success.
| void Setup | ( | const std::map< std::string, armnn::TensorShape > & | inputShapes | ) |
Definition at line 142 of file ParserPrototxtFixture.hpp.
References ARMNN_NO_DEPRECATE_WARN_BEGIN, ARMNN_NO_DEPRECATE_WARN_END, CHECK_LOCATION, armnn::CpuRef, m_NetworkIdentifier, m_Parser, m_Prototext, m_Runtime, armnn::Optimize(), and armnn::Success.
| void Setup | ( | const std::map< std::string, armnn::TensorShape > & | inputShapes, |
| const std::vector< std::string > & | requestedOutputs ) |
Definition at line 124 of file ParserPrototxtFixture.hpp.
References CHECK_LOCATION, armnn::CpuRef, m_NetworkIdentifier, m_Parser, m_Prototext, m_Runtime, armnn::Optimize(), and armnn::Success.
Referenced by SetupSingleInputSingleOutput(), SetupSingleInputSingleOutput(), and SetupSingleInputSingleOutput().
| armnn::IOptimizedNetworkPtr SetupOptimizedNetwork | ( | const std::map< std::string, armnn::TensorShape > & | inputShapes, |
| const std::vector< std::string > & | requestedOutputs ) |
Definition at line 178 of file ParserPrototxtFixture.hpp.
References armnn::CpuRef, m_Parser, m_Prototext, m_Runtime, and armnn::Optimize().
| void SetupSingleInputSingleOutput | ( | const armnn::TensorShape & | inputTensorShape, |
| const armnn::TensorShape & | outputTensorShape, | ||
| const std::string & | inputName, | ||
| const std::string & | outputName ) |
Definition at line 110 of file ParserPrototxtFixture.hpp.
References m_SingleInputName, m_SingleOutputName, m_SingleOutputShape, and Setup().
| void SetupSingleInputSingleOutput | ( | const armnn::TensorShape & | inputTensorShape, |
| const std::string & | inputName, | ||
| const std::string & | outputName ) |
Definition at line 99 of file ParserPrototxtFixture.hpp.
References m_SingleInputName, m_SingleOutputName, and Setup().
| void SetupSingleInputSingleOutput | ( | const std::string & | inputName, |
| const std::string & | outputName ) |
Parses and loads the network defined by the m_Prototext string.
Definition at line 89 of file ParserPrototxtFixture.hpp.
References m_SingleInputName, m_SingleOutputName, and Setup().
| armnn::NetworkId m_NetworkIdentifier |
Definition at line 74 of file ParserPrototxtFixture.hpp.
Referenced by ParserPrototxtFixture(), RunTest(), Setup(), Setup(), and Setup().
| std::unique_ptr<TParser, void(*)(TParser* parser)> m_Parser |
Definition at line 72 of file ParserPrototxtFixture.hpp.
Referenced by ParserPrototxtFixture(), RunTest(), Setup(), Setup(), Setup(), and SetupOptimizedNetwork().
| std::string m_Prototext |
Definition at line 71 of file ParserPrototxtFixture.hpp.
Referenced by Setup(), Setup(), Setup(), and SetupOptimizedNetwork().
| armnn::IRuntimePtr m_Runtime |
Definition at line 73 of file ParserPrototxtFixture.hpp.
Referenced by ParserPrototxtFixture(), RunTest(), Setup(), Setup(), Setup(), and SetupOptimizedNetwork().
| std::string m_SingleInputName |
If the single-input-single-output overload of Setup() is called, these will store the input and output name so they don't need to be passed to the single-input-single-output overload of RunTest().
Definition at line 79 of file ParserPrototxtFixture.hpp.
Referenced by RunTest(), SetupSingleInputSingleOutput(), SetupSingleInputSingleOutput(), and SetupSingleInputSingleOutput().
| std::string m_SingleOutputName |
Definition at line 80 of file ParserPrototxtFixture.hpp.
Referenced by RunTest(), SetupSingleInputSingleOutput(), SetupSingleInputSingleOutput(), and SetupSingleInputSingleOutput().
| armnn::TensorShape m_SingleOutputShape |
This will store the output shape so it don't need to be passed to the single-input-single-output overload of RunTest().
Definition at line 85 of file ParserPrototxtFixture.hpp.
Referenced by RunTest(), and SetupSingleInputSingleOutput().