22.05
|
Class that contains all the global parameters used by the tests. More...
#include <ParametersLibrary.h>
Public Member Functions | |
ParametersLibrary ()=default | |
Default constructor. More... | |
void | set_cpu_ctx (std::unique_ptr< IRuntimeContext > cpu_ctx) |
Set cpu context to be used by the tests. More... | |
void | set_cl_ctx (std::unique_ptr< IRuntimeContext > cl_ctx) |
Set gpu context to be used by the tests. More... | |
void | set_gc_ctx (std::unique_ptr< IRuntimeContext > gc_ctx) |
Set gpu context to be used by the tests. More... | |
template<typename TensorType > | |
ContextType< TensorType >::type * | get_ctx () |
Get context given a tensor type. More... | |
template<> | |
ContextType< Tensor >::type * | get_ctx () |
Class that contains all the global parameters used by the tests.
Definition at line 61 of file ParametersLibrary.h.
|
default |
Default constructor.
ContextType<Tensor>::type* get_ctx | ( | ) |
Definition at line 46 of file ParametersLibrary.cpp.
|
inline |
Get context given a tensor type.
TensorType |
Definition at line 88 of file ParametersLibrary.h.
void set_cl_ctx | ( | std::unique_ptr< IRuntimeContext > | cl_ctx | ) |
Set gpu context to be used by the tests.
[in] | cl_ctx | GPU context to use |
Definition at line 35 of file ParametersLibrary.cpp.
void set_cpu_ctx | ( | std::unique_ptr< IRuntimeContext > | cpu_ctx | ) |
Set cpu context to be used by the tests.
[in] | cpu_ctx | CPU context to use |
Definition at line 30 of file ParametersLibrary.cpp.
void set_gc_ctx | ( | std::unique_ptr< IRuntimeContext > | gc_ctx | ) |
Set gpu context to be used by the tests.
[in] | gc_ctx | GPU context to use |
Definition at line 40 of file ParametersLibrary.cpp.