Skip to content

Commit

Permalink
Fixing variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Oct 12, 2023
1 parent 15d5283 commit 3ab7e08
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 3ab7e08

Please sign in to comment.