Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

How to pass a struct from pytorch to c extension? #15

Open
chenchr opened this issue Dec 1, 2017 · 0 comments
Open

How to pass a struct from pytorch to c extension? #15

chenchr opened this issue Dec 1, 2017 · 0 comments

Comments

@chenchr
Copy link

chenchr commented Dec 1, 2017

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant