deepakbabel edited a comment on issue #4979: [Relay/TOPI/TF][Op] Add support 
for randomuniform Op in TVM
URL: https://github.com/apache/incubator-tvm/pull/4979#issuecomment-595735969
 
 
   Hi @MarisaKirisame 
   I understand now that in the new design proposed by you, we want to enforce 
unique random sequences every-time even if the input seed provided by user is 
same between multiple session executions. We are internally using C++11 
std::mt19937 generator for PRNG generation. There are no such API available in 
this generator which returns a new random seed value along with the output RNG 
object. Please see "src/runtime/contrib/random/mt_random_engine.cc" for more 
details.
   In such case how do you propose getting the new random seed. Also this piece 
of tvm code for PRNG generation(mt_random_engine.cc, random.cc) was 
pre-existing in contrib layer, we have just provided support in relay and topi 
layers so that it can be called by both these layers.
   Hope you are not referring to getting back the current seed(user provided 
seed). If so, then can use GetSeed() method of our RandomEngine class.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to