Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] using SetSeed on C++ inference #23306

Open
k5-inoue opened this issue Jan 9, 2025 · 0 comments
Open

[Feature Request] using SetSeed on C++ inference #23306

k5-inoue opened this issue Jan 9, 2025 · 0 comments
Labels
feature request request for unsupported feature or enhancement

Comments

@k5-inoue
Copy link

k5-inoue commented Jan 9, 2025

Describe the feature request

Will a future update be able to fix the random number seed during inference as well?

Describe scenario use case

Hi, I am making a C++ program for inference with a neural network model.
The neural network model includes a module that generates random numbers (RandomNormalLike).
Therefore, the output values are slightly different even for the same input.

I want to implement a function that turns this randomness on and off.
Example: We would like to store and use the seed of an excellent result.
Looking at the API reference, it seems that the SetSeed() function can be used to fix the random number seed during training (onnxruntime_training_c_api.h), but it is not available during inference (onnxruntime_cxx_api.h).
https://onnxruntime.ai/docs/api/c/namespace_ort.html

@k5-inoue k5-inoue added the feature request request for unsupported feature or enhancement label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request request for unsupported feature or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant