Skip to content

Commit 5b9c71c

Browse files
JoeCianflonelantiga
authored andcommitted
Update mobilenet.js (#130)
Update mobilenet.js to reflect the correct number of elements returned from TENSORGET
1 parent a81342c commit 5b9c71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/mobilenet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function run(filenames) {
7474

7575
console.log("Getting output tensor");
7676
let out_data = await redis.callBuffer('AI.TENSORGET', 'output_' + i, 'BLOB');
77-
let out_array = buffer_to_float32array(out_data[4]);
77+
let out_array = buffer_to_float32array(out_data[out_data.length - 1]);
7878

7979
label = argmax(out_array);
8080

0 commit comments

Comments
 (0)