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>
diff --git a/tests/validate_examples/RunExample.cpp b/tests/validate_examples/RunExample.cpp
index 5d5291a..998d501 100644
--- a/tests/validate_examples/RunExample.cpp
+++ b/tests/validate_examples/RunExample.cpp
@@ -53,6 +53,8 @@
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 @@
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)
{