blob: b1336bcef882286e7f1e3f97f91e0aa590bf873f [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
5#pragma once
6
7#include "ClassifierTestCaseData.hpp"
8
9#include <string>
10#include <memory>
11
12class MnistDatabase
13{
14public:
telsoa01c577f2c2018-08-31 09:22:23 +010015 using DataType = float;
16 using TTestCaseData = ClassifierTestCaseData<DataType>;
telsoa014fcda012018-03-09 14:13:49 +000017
18 explicit MnistDatabase(const std::string& binaryFileDirectory, bool scaleValues = false);
19 std::unique_ptr<TTestCaseData> GetTestCaseData(unsigned int testCaseId);
20
21private:
22 std::string m_BinaryDirectory;
23 bool m_ScaleValues;
24};