Skip to content

Commit

Permalink
Fixing variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Nov 8, 2023
1 parent 5fbd891 commit 437b52e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public void throwWrongSizeInput() {
JavaOnlyMap options = new JavaOnlyMap();
byte[] modelBuffer = getInputModelBuffer(modelStream);
ReadableMap loadMap = ortModule.loadModel(modelBuffer, options);
sessionKey = resultMap.getString("key");
sessionKey = loadMap.getString("key");

int[] dims = new int[] {1, 7};
float[] inputData = new float[] {1.0f, 2.0f, -3.0f, Float.MIN_VALUE, Float.MAX_VALUE, 5f, -6f};
Expand Down Expand Up @@ -276,7 +276,7 @@ public void throwWrongRankInput() {
reactContext.getResources().openRawResource(ai.onnxruntime.reactnative.test.R.raw.test_types_float)){
byte[] modelBuffer = getInputModelBuffer(modelStream);
ReadableMap loadMap = ortModule.loadModel(modelBuffer, options);
sessionKey = resultMap.getString("key");
sessionKey = loadMap.getString("key");

int[] dims = new int[] {1, 1, 7};
float[] inputData = new float[] {1.0f, 2.0f, -3.0f, Float.MIN_VALUE, Float.MAX_VALUE, 5f, -6f};
Expand Down

0 comments on commit 437b52e

Please sign in to comment.