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

Random sampling mygrad.random #43

Closed
8 tasks
rsokl opened this issue Apr 10, 2018 · 1 comment
Closed
8 tasks

Random sampling mygrad.random #43

rsokl opened this issue Apr 10, 2018 · 1 comment

Comments

@rsokl
Copy link
Owner

rsokl commented Apr 10, 2018

These no-backprop functions should simply wrap the corresponding numpy functions, but return tensors. constant=False should be included as a default argument. Simply write a wrapper that converts these numpy functions to mygrad ones (returning tensors). The return statement in the docstring should be updated as such.

mygrad/random/funcs.py

  • rand
  • randn
  • randint
  • random_integers
  • random_sample
  • random
  • ranf
  • sample
@petarmhg
Copy link
Collaborator

Closed by #257.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants