24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_PARAMETERS_LIBRARY_H
25 #define ARM_COMPUTE_TEST_PARAMETERS_LIBRARY_H
70 void set_cpu_ctx(std::unique_ptr<IRuntimeContext> cpu_ctx);
75 void set_cl_ctx(std::unique_ptr<IRuntimeContext> cl_ctx);
80 void set_gc_ctx(std::unique_ptr<IRuntimeContext> gc_ctx);
87 template <
typename TensorType>
94 std::unique_ptr<IRuntimeContext> _cpu_ctx{
nullptr };
95 std::unique_ptr<IRuntimeContext> _cl_ctx{
nullptr };
96 std::unique_ptr<IRuntimeContext> _gc_ctx{
nullptr };
100 #endif //ARM_COMPUTE_TEST_PARAMETERS_LIBRARY_H
Class that contains all the global parameters used by the tests.
Basic implementation of the OpenCL tensor interface.
void set_cpu_ctx(std::unique_ptr< IRuntimeContext > cpu_ctx)
Set cpu context to be used by the tests.
void set_cl_ctx(std::unique_ptr< IRuntimeContext > cl_ctx)
Set gpu context to be used by the tests.
ContextType< TensorType >::type * get_ctx()
Get context given a tensor type.
Copyright (c) 2017-2024 Arm Limited.
Basic implementation of the tensor interface.
ParametersLibrary()=default
Default constructor.
void set_gc_ctx(std::unique_ptr< IRuntimeContext > gc_ctx)
Set gpu context to be used by the tests.