ArmNN
NotReleased
|
#include "JsonPrinterTestImpl.hpp"
#include <Profiling.hpp>
#include <armnn/Descriptors.hpp>
#include <armnn/IRuntime.hpp>
#include <armnn/INetwork.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/test/unit_test.hpp>
#include <sstream>
#include <stack>
#include <string>
Go to the source code of this file.
Functions | |
bool | AreMatchingPair (const char opening, const char closing) |
bool | AreParenthesesMatching (const std::string &exp) |
std::vector< double > | ExtractMeasurements (const std::string &exp) |
std::vector< std::string > | ExtractSections (const std::string &exp) |
std::string | GetSoftmaxProfilerJson (const std::vector< armnn::BackendId > &backends) |
void | ValidateProfilerJson (std::string &result) |
void | RunSoftmaxProfilerJsonPrinterTest (const std::vector< armnn::BackendId > &backends) |
|
inline |
Definition at line 22 of file JsonPrinterTestImpl.cpp.
Referenced by AreParenthesesMatching().
bool AreParenthesesMatching | ( | const std::string & | exp | ) |
Definition at line 27 of file JsonPrinterTestImpl.cpp.
References AreMatchingPair().
Referenced by ValidateProfilerJson().
std::vector<double> ExtractMeasurements | ( | const std::string & | exp | ) |
Definition at line 51 of file JsonPrinterTestImpl.cpp.
Referenced by ValidateProfilerJson().
std::vector<std::string> ExtractSections | ( | const std::string & | exp | ) |
Definition at line 98 of file JsonPrinterTestImpl.cpp.
Referenced by ValidateProfilerJson().
std::string GetSoftmaxProfilerJson | ( | const std::vector< armnn::BackendId > & | backends | ) |
Definition at line 120 of file JsonPrinterTestImpl.cpp.
References BOOST_CHECK(), IOutputSlot::Connect(), armnn::CpuAcc, INetwork::Create(), IRuntime::Create(), armnn::error, IConnectableLayer::GetInputSlot(), ProfilerManager::GetInstance(), IConnectableLayer::GetOutputSlot(), armnn::GpuAcc, SoftmaxDescriptor::m_Axis, IRuntime::CreationOptions::m_EnableGpuProfiling, armnn::Optimize(), options, armnn::QAsymmU8, TensorInfo::SetQuantizationOffset(), TensorInfo::SetQuantizationScale(), IOutputSlot::SetTensorInfo(), and armnn::Success.
Referenced by RunSoftmaxProfilerJsonPrinterTest().
void RunSoftmaxProfilerJsonPrinterTest | ( | const std::vector< armnn::BackendId > & | backends | ) |
Definition at line 245 of file JsonPrinterTestImpl.cpp.
References BOOST_CHECK(), armnn::CpuAcc, GetSoftmaxProfilerJson(), armnn::GpuAcc, and ValidateProfilerJson().
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 202 of file JsonPrinterTestImpl.cpp.
References AreParenthesesMatching(), BOOST_CHECK(), ExtractMeasurements(), and ExtractSections().
Referenced by RunSoftmaxProfilerJsonPrinterTest().