Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions foxi/onnxifi_dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}
8 changes: 6 additions & 2 deletions foxi/onnxifi_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down