MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / loadHeaderValues

Function loadHeaderValues

quantization/data_mnist.js:80–87  ·  view source on GitHub ↗
(buffer, headerLength)

Source from the content-addressed store, hash-verified

78}
79
80function loadHeaderValues(buffer, headerLength) {
81 const headerValues = [];
82 for (let i = 0; i < headerLength / 4; i++) {
83 // Header data is stored in-order (aka big-endian)
84 headerValues[i] = buffer.readUInt32BE(i * 4);
85 }
86 return headerValues;
87}
88
89async function loadImages(baseURL, destDir, filename) {
90 const buffer =

Callers 2

loadImagesFunction · 0.70
loadLabelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected