zhifu gao
2023-04-14 d7440147aabb2e8e6f411073ebac08f1e498e07e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
#ifndef MODEL_H
#define MODEL_H
 
#include <string>
 
class Model {
  public:
    virtual ~Model(){};
    virtual void reset() = 0;
    virtual std::string forward_chunk(float *din, int len, int flag) = 0;
    virtual std::string forward(float *din, int len, int flag) = 0;
    virtual std::string rescoring() = 0;
};
 
Model *create_model(const char *path,int nThread=0,bool quantize=false);
#endif