mbrookhart commented on issue #8632: URL: https://github.com/apache/tvm/issues/8632#issuecomment-891528219
https://github.com/apache/tvm/blob/6d88bdd3ea36d9e3167eb92e167bd05f997c7fb3/python/tvm/relay/frontend/onnx.py#L3397-L3418 We have RandomUniform, but we haven't looked into the rest yet. There is a random number generator based on [ThreeFry Counter-based RNG](https://bashtage.github.io/randomgen/bit_generators/threefry.html), but it's probably not going to match the seed ONNX uses, so I would recommend testing some statistics on the output vs ONNX (mean, std, etc), rather than directly trying to get the same output. The threefry generator generates random bits if I remember correctly, you can see how uniform transforms that into a uniform distribution here: https://github.com/apache/tvm/blob/6d88bdd3ea36d9e3167eb92e167bd05f997c7fb3/python/tvm/topi/random/kernel.py#L483 -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
