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: msg
path: root/gnu/bootloader/depthcharge.scm
AgeCommit message (Expand)Author
2020-05-20bootloader: grub: Allow booting from a Btrfs subvolume....* gnu/bootloader/grub.scm (strip-mount-point): Remove procedure. (normalize-file): Add procedure. (grub-configuration-file): New BTRFS-SUBVOLUME-FILE-NAME parameter. When defined, prepend its value to the kernel and initrd file names, using the NORMALIZE-FILE procedure. Adjust the call to EYE-CANDY to pass the BTRFS-SUBVOLUME-FILE-NAME argument. Normalize the KEYMAP file as well. (eye-candy): Add a BTRFS-SUBVOLUME-FILE-NAME parameter, and use it, along with the NORMALIZE-FILE procedure, to normalize the FONT-FILE and IMAGE nested variables. Adjust doc. * gnu/bootloader/depthcharge.scm (depthcharge-configuration-file): Adapt. * gnu/bootloader/extlinux.scm (extlinux-configuration-file): Likewise. * gnu/system/file-systems.scm (btrfs-subvolume?) (btrfs-store-subvolume-file-name): New procedures. * gnu/system.scm (operating-system-bootcfg): Specify the Btrfs subvolume file name the store resides on to the `operating-system-bootcfg' procedure, using the new BTRFS-SUBVOLUME-FILE-NAME argument. * doc/guix.texi (File Systems): Add a Btrfs subsection to document the use of subvolumes. * gnu/tests/install.scm (%btrfs-root-on-subvolume-os) (%btrfs-root-on-subvolume-os-source) (%btrfs-root-on-subvolume-installation-script) (%test-btrfs-root-on-subvolume-os): New variables. Maxim Cournoyer