21.11
|
The ClBackendModelContext is used to pass in CL specific backend ModelOptions. More...
#include <ClBackendModelContext.hpp>
Public Member Functions | |
ClBackendModelContext (const ModelOptions &modelOptions) | |
std::string | GetCachedNetworkFilePath () const |
bool | IsFastMathEnabled () const |
bool | SaveCachedNetwork () const |
int | GetCachedFileDescriptor () const |
![]() | |
virtual | ~IBackendModelContext () |
The ClBackendModelContext is used to pass in CL specific backend ModelOptions.
The supported backend ModelOptions are:
Definition at line 28 of file ClBackendModelContext.hpp.
ClBackendModelContext | ( | const ModelOptions & | modelOptions | ) |
Definition at line 34 of file ClBackendModelContext.cpp.
References armnn::ParseFile(), armnn::ParseIntBackendOption(), and armnn::ParseOptions().
int GetCachedFileDescriptor | ( | ) | const |
Definition at line 76 of file ClBackendModelContext.cpp.
std::string GetCachedNetworkFilePath | ( | ) | const |
Definition at line 61 of file ClBackendModelContext.cpp.
Referenced by ClWorkloadFactory::AfterWorkloadsCreated().
bool IsFastMathEnabled | ( | ) | const |
Definition at line 66 of file ClBackendModelContext.cpp.
Referenced by ClWorkloadFactory::CreateConvolution2d(), ClWorkloadFactory::CreateConvolution3d(), ClLayerSupport::IsConvolution2dSupported(), ClLayerSupport::IsConvolution3dSupported(), and ClBackend::OptimizeSubgraphView().
bool SaveCachedNetwork | ( | ) | const |
Definition at line 71 of file ClBackendModelContext.cpp.