FLImaging 7.1.2.3
BackendBase.h
1#pragma once
2
3#if _MSC_VER >= 1900 && defined(_M_X64)
4
5#include "DefinitionsAI.h"
6
7namespace FLImaging
8{
9 namespace AI
10 {
11 template <typename T>
12 class CComputationalGraphUtilities;
13
14 template <typename T>
15 class FL_EXPORT CBackendBase : public CAlgorithmAIBase
16 {
17
18 public:
19 CBackendBase();
20 virtual ~CBackendBase();
21
22 virtual const CResult SetDeviceIndex(int32_t i32DeviceIndex);
23 virtual int32_t GetDeviceIndex() const;
24
25 virtual const CResult EnableTensorCore(bool bTensorCore = true);
26 virtual bool IsTensorCoreEnabled() const;
27
28 virtual const CResult Clear();
29 DeclareGetClassType();
30 SupportToDuplicateAbstractObject(CBackendBase<T>);
31
32 protected:
33 virtual void Throw(const CResult& res, const wchar_t* pWcsExtraMessage = nullptr) const override;
34 protected:
35 int32_t m_i32DeviceIndex;
36 bool m_bTensorCoreEnabled;
37
38 protected:
39 template <typename T>
40 friend class CComputationalGraphUtilities;
41 };
42 }
43}
44
45#endif
Processing unit AI class required by algorithm.
Definition AlgorithmAIBase.h:27
Definition AlgorithmAIBase.h:18
@ Clear
Clear all the figure objects.
Definition DefinitionsGUI.h:2110