orca-zhang commited on
Commit
7b84a8a
·
verified ·
1 Parent(s): c85a312

Add real NCNN runtime artifacts for darwin and linux

Browse files
.gitattributes CHANGED
@@ -34,3 +34,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  multilingual-e5-small-int8/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  multilingual-e5-small-int8/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ darwin/arm64/libzima_ncnn_runtime.dylib filter=lfs diff=lfs merge=lfs -text
38
+ linux/amd64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
39
+ linux/arm64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
40
+ runtime/darwin/arm64/libzima_ncnn_runtime.dylib filter=lfs diff=lfs merge=lfs -text
41
+ runtime/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
42
+ runtime/linux/amd64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
43
+ runtime/linux/arm64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
darwin/arm64/libzima_ncnn_runtime.dylib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8534126f64ef55fbc9119e9ae6bc381f8caadd79eedc0a2ea7d5af3eb6414a72
3
+ size 2323378
darwin/arm64/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ extern size_t _GoStringLen(_GoString_ s);
16
+ extern const char *_GoStringPtr(_GoString_ s);
17
+ #endif
18
+
19
+ #endif
20
+
21
+ /* Start of preamble from import "C" comments. */
22
+
23
+
24
+ #line 3 "main.go"
25
+
26
+ #include <stdint.h>
27
+ #include <stdlib.h>
28
+
29
+ #line 1 "cgo-generated-wrapper"
30
+
31
+
32
+ /* End of preamble from import "C" comments. */
33
+
34
+
35
+ /* Start of boilerplate cgo prologue. */
36
+ #line 1 "cgo-gcc-export-header-prolog"
37
+
38
+ #ifndef GO_CGO_PROLOGUE_H
39
+ #define GO_CGO_PROLOGUE_H
40
+
41
+ typedef signed char GoInt8;
42
+ typedef unsigned char GoUint8;
43
+ typedef short GoInt16;
44
+ typedef unsigned short GoUint16;
45
+ typedef int GoInt32;
46
+ typedef unsigned int GoUint32;
47
+ typedef long long GoInt64;
48
+ typedef unsigned long long GoUint64;
49
+ typedef GoInt64 GoInt;
50
+ typedef GoUint64 GoUint;
51
+ typedef size_t GoUintptr;
52
+ typedef float GoFloat32;
53
+ typedef double GoFloat64;
54
+ #ifdef _MSC_VER
55
+ #if !defined(__cplusplus) || _MSVC_LANG <= 201402L
56
+ #include <complex.h>
57
+ typedef _Fcomplex GoComplex64;
58
+ typedef _Dcomplex GoComplex128;
59
+ #else
60
+ #include <complex>
61
+ typedef std::complex<float> GoComplex64;
62
+ typedef std::complex<double> GoComplex128;
63
+ #endif
64
+ #else
65
+ typedef float _Complex GoComplex64;
66
+ typedef double _Complex GoComplex128;
67
+ #endif
68
+
69
+ /*
70
+ static assertion to make sure the file is being used on architecture
71
+ at least with matching size of GoInt.
72
+ */
73
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
74
+
75
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
76
+ typedef _GoString_ GoString;
77
+ #endif
78
+ typedef void *GoMap;
79
+ typedef void *GoChan;
80
+ typedef struct { void *t; void *v; } GoInterface;
81
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
82
+
83
+ #endif
84
+
85
+ /* End of boilerplate cgo prologue. */
86
+
87
+ #ifdef __cplusplus
88
+ extern "C" {
89
+ #endif
90
+
91
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
92
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
93
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
94
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
95
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
96
+
97
+ #ifdef __cplusplus
98
+ }
99
+ #endif
linux/amd64/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 3 "main.go"
23
+
24
+ #include <stdint.h>
25
+ #include <stdlib.h>
26
+
27
+ #line 1 "cgo-generated-wrapper"
28
+
29
+
30
+ /* End of preamble from import "C" comments. */
31
+
32
+
33
+ /* Start of boilerplate cgo prologue. */
34
+ #line 1 "cgo-gcc-export-header-prolog"
35
+
36
+ #ifndef GO_CGO_PROLOGUE_H
37
+ #define GO_CGO_PROLOGUE_H
38
+
39
+ typedef signed char GoInt8;
40
+ typedef unsigned char GoUint8;
41
+ typedef short GoInt16;
42
+ typedef unsigned short GoUint16;
43
+ typedef int GoInt32;
44
+ typedef unsigned int GoUint32;
45
+ typedef long long GoInt64;
46
+ typedef unsigned long long GoUint64;
47
+ typedef GoInt64 GoInt;
48
+ typedef GoUint64 GoUint;
49
+ typedef size_t GoUintptr;
50
+ typedef float GoFloat32;
51
+ typedef double GoFloat64;
52
+ #ifdef _MSC_VER
53
+ #include <complex.h>
54
+ typedef _Fcomplex GoComplex64;
55
+ typedef _Dcomplex GoComplex128;
56
+ #else
57
+ typedef float _Complex GoComplex64;
58
+ typedef double _Complex GoComplex128;
59
+ #endif
60
+
61
+ /*
62
+ static assertion to make sure the file is being used on architecture
63
+ at least with matching size of GoInt.
64
+ */
65
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66
+
67
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
68
+ typedef _GoString_ GoString;
69
+ #endif
70
+ typedef void *GoMap;
71
+ typedef void *GoChan;
72
+ typedef struct { void *t; void *v; } GoInterface;
73
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74
+
75
+ #endif
76
+
77
+ /* End of boilerplate cgo prologue. */
78
+
79
+ #ifdef __cplusplus
80
+ extern "C" {
81
+ #endif
82
+
83
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
84
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
85
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
86
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
87
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
88
+
89
+ #ifdef __cplusplus
90
+ }
91
+ #endif
linux/amd64/libzima_ncnn_runtime.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c368f2e7021e2aee3dd2a5a481e17e5aee98eb603b6831c4860aacb0b3597de
3
+ size 3517152
linux/arm64/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 3 "main.go"
23
+
24
+ #include <stdint.h>
25
+ #include <stdlib.h>
26
+
27
+ #line 1 "cgo-generated-wrapper"
28
+
29
+
30
+ /* End of preamble from import "C" comments. */
31
+
32
+
33
+ /* Start of boilerplate cgo prologue. */
34
+ #line 1 "cgo-gcc-export-header-prolog"
35
+
36
+ #ifndef GO_CGO_PROLOGUE_H
37
+ #define GO_CGO_PROLOGUE_H
38
+
39
+ typedef signed char GoInt8;
40
+ typedef unsigned char GoUint8;
41
+ typedef short GoInt16;
42
+ typedef unsigned short GoUint16;
43
+ typedef int GoInt32;
44
+ typedef unsigned int GoUint32;
45
+ typedef long long GoInt64;
46
+ typedef unsigned long long GoUint64;
47
+ typedef GoInt64 GoInt;
48
+ typedef GoUint64 GoUint;
49
+ typedef size_t GoUintptr;
50
+ typedef float GoFloat32;
51
+ typedef double GoFloat64;
52
+ #ifdef _MSC_VER
53
+ #include <complex.h>
54
+ typedef _Fcomplex GoComplex64;
55
+ typedef _Dcomplex GoComplex128;
56
+ #else
57
+ typedef float _Complex GoComplex64;
58
+ typedef double _Complex GoComplex128;
59
+ #endif
60
+
61
+ /*
62
+ static assertion to make sure the file is being used on architecture
63
+ at least with matching size of GoInt.
64
+ */
65
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66
+
67
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
68
+ typedef _GoString_ GoString;
69
+ #endif
70
+ typedef void *GoMap;
71
+ typedef void *GoChan;
72
+ typedef struct { void *t; void *v; } GoInterface;
73
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74
+
75
+ #endif
76
+
77
+ /* End of boilerplate cgo prologue. */
78
+
79
+ #ifdef __cplusplus
80
+ extern "C" {
81
+ #endif
82
+
83
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
84
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
85
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
86
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
87
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
88
+
89
+ #ifdef __cplusplus
90
+ }
91
+ #endif
linux/arm64/libzima_ncnn_runtime.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9341a1456675583857dbfcddf7dfa9e20a89fd92255d15f51c391a905b6871f9
3
+ size 3436104
runtime/darwin/arm64/libzima_ncnn_runtime.dylib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8534126f64ef55fbc9119e9ae6bc381f8caadd79eedc0a2ea7d5af3eb6414a72
3
+ size 2323378
runtime/darwin/arm64/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ extern size_t _GoStringLen(_GoString_ s);
16
+ extern const char *_GoStringPtr(_GoString_ s);
17
+ #endif
18
+
19
+ #endif
20
+
21
+ /* Start of preamble from import "C" comments. */
22
+
23
+
24
+ #line 3 "main.go"
25
+
26
+ #include <stdint.h>
27
+ #include <stdlib.h>
28
+
29
+ #line 1 "cgo-generated-wrapper"
30
+
31
+
32
+ /* End of preamble from import "C" comments. */
33
+
34
+
35
+ /* Start of boilerplate cgo prologue. */
36
+ #line 1 "cgo-gcc-export-header-prolog"
37
+
38
+ #ifndef GO_CGO_PROLOGUE_H
39
+ #define GO_CGO_PROLOGUE_H
40
+
41
+ typedef signed char GoInt8;
42
+ typedef unsigned char GoUint8;
43
+ typedef short GoInt16;
44
+ typedef unsigned short GoUint16;
45
+ typedef int GoInt32;
46
+ typedef unsigned int GoUint32;
47
+ typedef long long GoInt64;
48
+ typedef unsigned long long GoUint64;
49
+ typedef GoInt64 GoInt;
50
+ typedef GoUint64 GoUint;
51
+ typedef size_t GoUintptr;
52
+ typedef float GoFloat32;
53
+ typedef double GoFloat64;
54
+ #ifdef _MSC_VER
55
+ #if !defined(__cplusplus) || _MSVC_LANG <= 201402L
56
+ #include <complex.h>
57
+ typedef _Fcomplex GoComplex64;
58
+ typedef _Dcomplex GoComplex128;
59
+ #else
60
+ #include <complex>
61
+ typedef std::complex<float> GoComplex64;
62
+ typedef std::complex<double> GoComplex128;
63
+ #endif
64
+ #else
65
+ typedef float _Complex GoComplex64;
66
+ typedef double _Complex GoComplex128;
67
+ #endif
68
+
69
+ /*
70
+ static assertion to make sure the file is being used on architecture
71
+ at least with matching size of GoInt.
72
+ */
73
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
74
+
75
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
76
+ typedef _GoString_ GoString;
77
+ #endif
78
+ typedef void *GoMap;
79
+ typedef void *GoChan;
80
+ typedef struct { void *t; void *v; } GoInterface;
81
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
82
+
83
+ #endif
84
+
85
+ /* End of boilerplate cgo prologue. */
86
+
87
+ #ifdef __cplusplus
88
+ extern "C" {
89
+ #endif
90
+
91
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
92
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
93
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
94
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
95
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
96
+
97
+ #ifdef __cplusplus
98
+ }
99
+ #endif
runtime/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 3 "main.go"
23
+
24
+ #include <stdint.h>
25
+ #include <stdlib.h>
26
+
27
+ #line 1 "cgo-generated-wrapper"
28
+
29
+
30
+ /* End of preamble from import "C" comments. */
31
+
32
+
33
+ /* Start of boilerplate cgo prologue. */
34
+ #line 1 "cgo-gcc-export-header-prolog"
35
+
36
+ #ifndef GO_CGO_PROLOGUE_H
37
+ #define GO_CGO_PROLOGUE_H
38
+
39
+ typedef signed char GoInt8;
40
+ typedef unsigned char GoUint8;
41
+ typedef short GoInt16;
42
+ typedef unsigned short GoUint16;
43
+ typedef int GoInt32;
44
+ typedef unsigned int GoUint32;
45
+ typedef long long GoInt64;
46
+ typedef unsigned long long GoUint64;
47
+ typedef GoInt64 GoInt;
48
+ typedef GoUint64 GoUint;
49
+ typedef size_t GoUintptr;
50
+ typedef float GoFloat32;
51
+ typedef double GoFloat64;
52
+ #ifdef _MSC_VER
53
+ #include <complex.h>
54
+ typedef _Fcomplex GoComplex64;
55
+ typedef _Dcomplex GoComplex128;
56
+ #else
57
+ typedef float _Complex GoComplex64;
58
+ typedef double _Complex GoComplex128;
59
+ #endif
60
+
61
+ /*
62
+ static assertion to make sure the file is being used on architecture
63
+ at least with matching size of GoInt.
64
+ */
65
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66
+
67
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
68
+ typedef _GoString_ GoString;
69
+ #endif
70
+ typedef void *GoMap;
71
+ typedef void *GoChan;
72
+ typedef struct { void *t; void *v; } GoInterface;
73
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74
+
75
+ #endif
76
+
77
+ /* End of boilerplate cgo prologue. */
78
+
79
+ #ifdef __cplusplus
80
+ extern "C" {
81
+ #endif
82
+
83
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
84
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
85
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
86
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
87
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
88
+
89
+ #ifdef __cplusplus
90
+ }
91
+ #endif
runtime/libzima_ncnn_runtime.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c368f2e7021e2aee3dd2a5a481e17e5aee98eb603b6831c4860aacb0b3597de
3
+ size 3517152
runtime/linux/amd64/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 3 "main.go"
23
+
24
+ #include <stdint.h>
25
+ #include <stdlib.h>
26
+
27
+ #line 1 "cgo-generated-wrapper"
28
+
29
+
30
+ /* End of preamble from import "C" comments. */
31
+
32
+
33
+ /* Start of boilerplate cgo prologue. */
34
+ #line 1 "cgo-gcc-export-header-prolog"
35
+
36
+ #ifndef GO_CGO_PROLOGUE_H
37
+ #define GO_CGO_PROLOGUE_H
38
+
39
+ typedef signed char GoInt8;
40
+ typedef unsigned char GoUint8;
41
+ typedef short GoInt16;
42
+ typedef unsigned short GoUint16;
43
+ typedef int GoInt32;
44
+ typedef unsigned int GoUint32;
45
+ typedef long long GoInt64;
46
+ typedef unsigned long long GoUint64;
47
+ typedef GoInt64 GoInt;
48
+ typedef GoUint64 GoUint;
49
+ typedef size_t GoUintptr;
50
+ typedef float GoFloat32;
51
+ typedef double GoFloat64;
52
+ #ifdef _MSC_VER
53
+ #include <complex.h>
54
+ typedef _Fcomplex GoComplex64;
55
+ typedef _Dcomplex GoComplex128;
56
+ #else
57
+ typedef float _Complex GoComplex64;
58
+ typedef double _Complex GoComplex128;
59
+ #endif
60
+
61
+ /*
62
+ static assertion to make sure the file is being used on architecture
63
+ at least with matching size of GoInt.
64
+ */
65
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66
+
67
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
68
+ typedef _GoString_ GoString;
69
+ #endif
70
+ typedef void *GoMap;
71
+ typedef void *GoChan;
72
+ typedef struct { void *t; void *v; } GoInterface;
73
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74
+
75
+ #endif
76
+
77
+ /* End of boilerplate cgo prologue. */
78
+
79
+ #ifdef __cplusplus
80
+ extern "C" {
81
+ #endif
82
+
83
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
84
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
85
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
86
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
87
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
88
+
89
+ #ifdef __cplusplus
90
+ }
91
+ #endif
runtime/linux/amd64/libzima_ncnn_runtime.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c368f2e7021e2aee3dd2a5a481e17e5aee98eb603b6831c4860aacb0b3597de
3
+ size 3517152
runtime/linux/arm64/libzima_ncnn_runtime.h ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h>
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 3 "main.go"
23
+
24
+ #include <stdint.h>
25
+ #include <stdlib.h>
26
+
27
+ #line 1 "cgo-generated-wrapper"
28
+
29
+
30
+ /* End of preamble from import "C" comments. */
31
+
32
+
33
+ /* Start of boilerplate cgo prologue. */
34
+ #line 1 "cgo-gcc-export-header-prolog"
35
+
36
+ #ifndef GO_CGO_PROLOGUE_H
37
+ #define GO_CGO_PROLOGUE_H
38
+
39
+ typedef signed char GoInt8;
40
+ typedef unsigned char GoUint8;
41
+ typedef short GoInt16;
42
+ typedef unsigned short GoUint16;
43
+ typedef int GoInt32;
44
+ typedef unsigned int GoUint32;
45
+ typedef long long GoInt64;
46
+ typedef unsigned long long GoUint64;
47
+ typedef GoInt64 GoInt;
48
+ typedef GoUint64 GoUint;
49
+ typedef size_t GoUintptr;
50
+ typedef float GoFloat32;
51
+ typedef double GoFloat64;
52
+ #ifdef _MSC_VER
53
+ #include <complex.h>
54
+ typedef _Fcomplex GoComplex64;
55
+ typedef _Dcomplex GoComplex128;
56
+ #else
57
+ typedef float _Complex GoComplex64;
58
+ typedef double _Complex GoComplex128;
59
+ #endif
60
+
61
+ /*
62
+ static assertion to make sure the file is being used on architecture
63
+ at least with matching size of GoInt.
64
+ */
65
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66
+
67
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
68
+ typedef _GoString_ GoString;
69
+ #endif
70
+ typedef void *GoMap;
71
+ typedef void *GoChan;
72
+ typedef struct { void *t; void *v; } GoInterface;
73
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74
+
75
+ #endif
76
+
77
+ /* End of boilerplate cgo prologue. */
78
+
79
+ #ifdef __cplusplus
80
+ extern "C" {
81
+ #endif
82
+
83
+ extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
84
+ extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
85
+ extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
86
+ extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
87
+ extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
88
+
89
+ #ifdef __cplusplus
90
+ }
91
+ #endif
runtime/linux/arm64/libzima_ncnn_runtime.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9341a1456675583857dbfcddf7dfa9e20a89fd92255d15f51c391a905b6871f9
3
+ size 3436104