3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-01 07:42:18 +00:00
Brooklyn/arch/arm/ARMnn/tests/MnistDatabase.hpp
2022-04-02 18:06:56 +05:00

24 lines
540 B
C++

//
// 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;
};