aboutsummaryrefslogtreecommitdiff
path: root/tests/MnistDatabase.hpp
blob: 055a85231b6b53429bc72aed24d9070aa7c51099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include "ClassifierTestCaseData.hpp"

#include <string>
#include <memory>

class MnistDatabase
{
public:
    using DataType = float;
    using TTestCaseData = ClassifierTestCaseData<DataType>;

    explicit MnistDatabase(const std::string& binaryFileDirectory, bool scaleValues = false);
    std::unique_ptr<TTestCaseData> GetTestCaseData(unsigned int testCaseId);

private:
    std::string m_BinaryDirectory;
    bool m_ScaleValues;
};