MarisaKirisame commented on issue #4979: [Relay/TOPI/TF][Op] Add support for randomuniform Op in TVM URL: https://github.com/apache/incubator-tvm/pull/4979#issuecomment-595330595 I am proposing the following design: the tvm operator randomuniform take a seed, and return a random uniform tensor paired with the new seed. relay has a global reference holding a seed. there are relay helper function that, read the seed, call randomuniform, write the new seed to the reference, and returning the tensor. this way, the tvm level can be kept pure, which is beneficial for optimization, while the relay level provide effectful api that is easy to use.
---------------------------------------------------------------- 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
