blob: 1c462ab9a73dde02d82035c3eac2a9e371cd2435 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef NERV_FASTNN_EXAMPLE_H
#define NERV_FASTNN_EXAMPLE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "matrix/matrix.h"
#include "stdbool.h"
#define STRLEN 1024
typedef struct ExamplesRepository ExamplesRepository;
typedef struct Example Example;
ExamplesRepository* ExamplesRepository_new(int buffersize);
ExamplesRepository* ExamplesRepository_newWithId(long id);
long ExamplesRepository_id(ExamplesRepository* reop);
void ExamplesRepository_destroy(ExamplesRepository* reop);
void AcceptExample(ExamplesRepository *repo, Example *example);
void ExamplesDone(ExamplesRepository *repo);
Example* ProvideExample(ExamplesRepository *repo);
void ExamplesRepository_setGpuId(ExamplesRepository* repo, int gpuid);
int ExamplesRepository_getGpuId(ExamplesRepository* repo);
Example* Example_new();
Example* Example_newWithId(long id);
long Example_id(Example* example);
void Example_destroy(Example* example);
int Example_size(Example* example);
Matrix* Example_at(Example* example, int idx);
void Example_pushback(Example* example, Matrix* m);
#ifdef __cplusplus
} // closing brace for extern "C"
#endif // end Example
#endif
|