Change to use RandomGenerator outside the RandomTestRunner. (#1922)
author장지섭/동작제어Lab(SR)/Engineer/삼성전자 <jiseob.jang@samsung.com>
Thu, 26 Jul 2018 01:54:48 +0000 (10:54 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 26 Jul 2018 01:54:48 +0000 (10:54 +0900)
This commit changes to use RandomGenerator outside of RandomTestRunner because some inputs are able to set the value outside of RandomTestRunner.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
include/support/tflite/Diff.h

index 8b57c45..1a0ffd9 100644 (file)
@@ -113,6 +113,9 @@ public:
   // Return 0 if test succeeds
   int run(const nnfw::support::tflite::interp::Builder &builder);
 
+public:
+  RandomGenerator &generator() { return _randgen; };
+
 private:
   RandomGenerator _randgen;
   const RandomTestParam _param;