MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / nextTestBatch

Method nextTestBatch

mnist-core/data.js:117–123  ·  view source on GitHub ↗
(batchSize)

Source from the content-addressed store, hash-verified

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);

Callers 1

testFunction · 0.45

Calls 1

nextBatchMethod · 0.95

Tested by 1

testFunction · 0.36