Skip to content

ENH: control a random stream to be from either numpy or pytorch #135

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

Merged
merged 3 commits into from
May 10, 2023

Conversation

ev-br
Copy link
Collaborator

@ev-br ev-br commented May 10, 2023

Add a global switch to select the random stream origin: pytorch or numpy. If points to NumPy, tnp.random.uniform just calls numpy.random.uniform etc.

Add a global switch to select the random stream origin: pytorch or numpy.
If it's numpy, `tnp.random.uniform` just call `numpy.random.uniform` etc.
@ev-br ev-br requested a review from lezcano May 10, 2023 17:43
Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small comment, otherwise it LGTM

@lezcano
Copy link
Collaborator

lezcano commented May 10, 2023

You can also now use this flag in the E2E tests.

@ev-br ev-br closed this May 10, 2023
@ev-br ev-br reopened this May 10, 2023
@ev-br ev-br merged commit 789ec48 into main May 10, 2023
@ev-br ev-br deleted the control_random branch May 10, 2023 20:46
@ev-br
Copy link
Collaborator Author

ev-br commented May 10, 2023

Merged as approved, e2e testing will do separately.

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

Successfully merging this pull request may close these issues.

2 participants