(batchSize)
| 115 | } |
| 116 | |
| 117 | nextTestBatch(batchSize) { |
| 118 | return this.nextBatch(batchSize, [this.testImages, this.testLabels], () => { |
| 119 | this.shuffledTestIndex = |
| 120 | (this.shuffledTestIndex + 1) % this.testIndices.length; |
| 121 | return this.testIndices[this.shuffledTestIndex]; |
| 122 | }); |
| 123 | } |
| 124 | |
| 125 | nextBatch(batchSize, data, index) { |
| 126 | const batchImagesArray = new Float32Array(batchSize * IMAGE_SIZE); |