Laurent Carlier | 749294b | 2020-06-01 09:03:17 +0100 | [diff] [blame] | 1 | // |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include "ClassifierTestCaseData.hpp" |
| 8 | |
| 9 | #include <string> |
| 10 | #include <memory> |
| 11 | |
| 12 | class Cifar10Database |
| 13 | { |
| 14 | public: |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 15 | using DataType = float; |
| 16 | using TTestCaseData = ClassifierTestCaseData<DataType>; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 17 | |
| 18 | explicit Cifar10Database(const std::string& binaryFileDirectory, bool rgbPack = false); |
| 19 | std::unique_ptr<TTestCaseData> GetTestCaseData(unsigned int testCaseId); |
| 20 | |
| 21 | private: |
| 22 | std::string m_BinaryDirectory; |
| 23 | bool m_RgbPack; |
| 24 | }; |