diff options
author | Sang-Hoon Park <sang-hoon.park@arm.com> | 2020-03-31 15:59:41 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-04-28 18:30:41 +0000 |
commit | 06cf9339ed4b86d559c837dcb7c1c273ae6a35eb (patch) | |
tree | 08380f00a37152c7fe589d58e6693bec3c00b1ff /tests/validate_examples/RunExample.cpp | |
parent | 6a1db9b25ed3a37449fdbc8479c6d3700fd157de (diff) | |
download | ComputeLibrary-06cf9339ed4b86d559c837dcb7c1c273ae6a35eb.tar.gz |
COMPMID-3294: Add AssetLibrary instance using a fixed seed
- Add fixed_seed instance for future use
- Make Copy fixture use the new instance to validate functionality
Change-Id: I7e8c1504b8db3203213d084b300f10ecd384f7fa
Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3107
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validate_examples/RunExample.cpp')
-rw-r--r-- | tests/validate_examples/RunExample.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/validate_examples/RunExample.cpp b/tests/validate_examples/RunExample.cpp index 5d5291abfb..998d5013a8 100644 --- a/tests/validate_examples/RunExample.cpp +++ b/tests/validate_examples/RunExample.cpp @@ -53,6 +53,8 @@ namespace arm_compute namespace test { std::unique_ptr<AssetsLibrary> library; +static constexpr uint32_t fixed_seed = 1; +std::unique_ptr<AssetsLibrary> fixed_library; } // namespace test namespace utils { @@ -136,7 +138,8 @@ int run_example(int argc, char **argv, std::unique_ptr<ValidateExample> example) g_example_argv.emplace_back(const_cast<char *>(arg.c_str())); // NOLINT } - library = support::cpp14::make_unique<AssetsLibrary>("." /* Only using random values */, seed->value()); + library = support::cpp14::make_unique<AssetsLibrary>("." /* Only using random values */, seed->value()); + fixed_library = support::cpp14::make_unique<AssetsLibrary>(".", fixed_seed); if(options.log_level->value() > framework::LogLevel::NONE) { |