Caffe2 - C++ API
A deep learning, cross platform ML framework
GLPredictor.h
1 
2 #pragma once
3 
4 #include "GLImage.h"
5 #include "caffe2/core/net.h"
6 #include "caffe2/core/predictor.h"
7 
8 namespace caffe2 {
9 class GLPredictor : public Predictor {
10  public:
11  GLPredictor(const NetDef& init_net,
12  const NetDef& run_net,
13  bool use_texture_input = false,
14  Workspace* parent = nullptr);
15 
16  template <class T>
17  bool run(std::vector<GLImageVector<T>*>& inputs, std::vector<const GLImageVector<T>*>* outputs);
18 
19  ~GLPredictor();
20 };
21 } // namespace caffe2
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
Definition: workspace.h:47
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...