diff --git a/examples/mnist/mnist.js b/examples/mnist/mnist.js index 6facc9d..ca996e2 100644 --- a/examples/mnist/mnist.js +++ b/examples/mnist/mnist.js @@ -33,7 +33,7 @@ async function loadFile(file) { let data = new Uint8Array(buffer, headerCount * 4); if(type == 'image') { - dataArr = []; + let dataArr = []; for(let i = 0; i < headers[1]; i++) { dataArr.push(data.subarray(dataLength * i, dataLength * (i + 1))); }