Skip to content

Commit

Permalink
Improve utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonibofarull committed Aug 11, 2023
1 parent 04cdb02 commit 910bc89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/iwasm/libraries/wasi-nn/test/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ run_inference(execution_target target, float *input, uint32_t *input_size,
*output_size = MAX_OUTPUT_TENSOR_SIZE - *output_size;
if (wasm_get_output(ctx, i, &out_tensor[offset], output_size)
!= success) {
NN_ERR_PRINTF("Error when getting output.");
exit(1);
NN_ERR_PRINTF("Error when getting index %d.", i);
break;
}

offset += *output_size;
Expand Down
2 changes: 1 addition & 1 deletion core/iwasm/libraries/wasi-nn/test/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "wasi_nn.h"

#define MAX_MODEL_SIZE 85000000
#define MAX_OUTPUT_TENSOR_SIZE 200
#define MAX_OUTPUT_TENSOR_SIZE 1000000
#define INPUT_TENSOR_DIMS 4
#define EPSILON 1e-8

Expand Down

0 comments on commit 910bc89

Please sign in to comment.