summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/foxi-fix-build.patch
blob: d82090ad384276df523ad9ff7d7cd7fab86fec10 (plain)
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
50
51
52
53
54
55
Taken from https://github.com/houseroad/foxi/pull/25.

diff --git a/foxi/onnxifi_dummy.c b/foxi/onnxifi_dummy.c
index 2115af9..73e25fc 100644
--- a/foxi/onnxifi_dummy.c
+++ b/foxi/onnxifi_dummy.c
@@ -103,7 +103,10 @@ ONNXIFI_PUBLIC ONNXIFI_CHECK_RESULT onnxStatus ONNXIFI_ABI onnxInitGraph(
     const void* onnxModel,
     uint32_t weightCount,
     const onnxTensorDescriptorV1* weightDescriptors,
-    onnxGraph* graph) {
+    onnxGraph* graph,
+    uint32_t maxSeqLength,
+    void* deferredWeightReader) {
+
   if (graph == NULL) {
     return ONNXIFI_STATUS_INVALID_POINTER;
   }
@@ -215,6 +218,8 @@ ONNXIFI_PUBLIC ONNXIFI_CHECK_RESULT onnxStatus ONNXIFI_ABI
 onnxWaitEventFor(onnxEvent event,
                  uint32_t timeoutMs,
                  onnxEventState* eventState,
-                 onnxStatus* eventStatus) {
+		  onnxStatus* eventStatus,
+		  char* message,
+		  size_t* messageLength) {
   return ONNXIFI_STATUS_SUCCESS;
 }
\ No newline at end of file
diff --git a/foxi/onnxifi_wrapper.c b/foxi/onnxifi_wrapper.c
index 98a9325..abe1440 100644
--- a/foxi/onnxifi_wrapper.c
+++ b/foxi/onnxifi_wrapper.c
@@ -761,7 +761,9 @@ ONNXIFI_PUBLIC onnxStatus ONNXIFI_ABI onnxInitGraph(
     const void* onnxModel,
     uint32_t weightsCount,
     const onnxTensorDescriptorV1* weightDescriptors,
-    onnxGraph* graph)
+    onnxGraph* graph,
+    uint32_t maxSeqLength,
+    void* deferredWeightReader)
 {
   if (graph == NULL) {
     return ONNXIFI_STATUS_INVALID_POINTER;
@@ -797,7 +799,9 @@ ONNXIFI_PUBLIC onnxStatus ONNXIFI_ABI onnxInitGraph(
     onnxModel,
     weightsCount,
     weightDescriptors,
-    &graph_wrapper->graph);
+    &graph_wrapper->graph,
+    maxSeqLength,
+    deferredWeightReader);
   switch (status) {
     case ONNXIFI_STATUS_SUCCESS:
     case ONNXIFI_STATUS_FALLBACK: