nnlib
GPU-accelerated, C/C++ neural network library.
runtime.h
Go to the documentation of this file.
1 
10 #ifndef NNLIB_RUNTIME_H
11 #define NNLIB_RUNTIME_H
12 
13 class Runtime {
14  Runtime();
15 
16 public:
17  bool useGradient;
18 
19  static Runtime& getInstance() {
20  static Runtime instance;
21  return instance;
22  }
23 
24  void disableGradient();
25 
26  void enableGradient();
27 
28  ~Runtime() = default;
29 
30  Runtime(Runtime const&) = delete;
31  void operator=(Runtime const&) = delete;
32 };
33 
34 #endif //NNLIB_RUNTIME_H
Definition: runtime.h:13