MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / MNISTBatchStream

Method MNISTBatchStream

samples/common/BatchStream.h:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{
41public:
42 MNISTBatchStream(int batchSize, int maxBatches, const std::string& dataFile, const std::string& labelsFile,
43 const std::vector<std::string>& directories)
44 : mBatchSize{batchSize}
45 , mMaxBatches{maxBatches}
46 , mDims{3, {1, 28, 28}} //!< We already know the dimensions of MNIST images.
47 {
48 readDataFile(locateFile(dataFile, directories));
49 readLabelsFile(locateFile(labelsFile, directories));
50 }
51
52 void reset(int firstBatch) override
53 {

Callers

nothing calls this directly

Calls 1

locateFileFunction · 0.85

Tested by

no test coverage detected