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

Small improvements in the vtrace implementation #34

Merged
merged 2 commits into from Mar 13, 2019

Conversation

heiner
Copy link
Contributor

@heiner heiner commented Mar 11, 2019

  • For x = np.random.randint(a, b), one has a <= x < b (unlike Python's standard random.randint(a,b) which is in [a, b], inclusive.

  • tf.scan has a reverse option is probably is marginally faster than inverting both its inputs and outputs.

Heiner added 2 commits March 11, 2019 23:23
Numpy's randint(a, b) samples from [a,b), including a but excluding b.
@lespeholt lespeholt merged commit 6c0c8a7 into google-deepmind:master Mar 13, 2019
@lespeholt
Copy link
Collaborator

Thanks!

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.

None yet

2 participants