extension-ffi icon indicating copy to clipboard operation
extension-ffi copied to clipboard

How to pass a struct from pytorch to c extension?

Open chenchr opened this issue 7 years ago • 0 comments

Hello. Thanks for sharing the example. However, I am writing a extension that need many parameters, I think pass the parameters as c struct should be a method to make the code more readable, are there any example to deal with extension has too much parameters to pass? Besides, how can I generate random number in THc? Are there a api doc? Thanks!

chenchr avatar Dec 01 '17 14:12 chenchr