unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob d82090ad384276df523ad9ff7d7cd7fab86fec10 1810 bytes (raw)
name: gnu/packages/patches/foxi-fix-build.patch 	 # note: path name is non-authoritative(*)

 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:

debug log:

solving d82090ad38 ...
found d82090ad38 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).