Skip to content

Support Numpy arrays as seeds in RandomState - #1689

Merged
okuta merged 4 commits into
cupy:masterfrom
mrocklin:array-seeds
Dec 10, 2018
Merged

okuta merged 4 commits into
cupy:masterfrom
mrocklin:array-seeds

Conversation

@mrocklin

@mrocklin mrocklin commented Oct 4, 2018

Copy link
Copy Markdown
Contributor

Fixes #1675

@kmaehashi
kmaehashi requested a review from okuta October 10, 2018 09:36
@kmaehashi

Copy link
Copy Markdown
Member

I think it's better to document this behavior somewhere, as this difference can be important for users. Maybe in https://docs-cupy.chainer.org/en/stable/reference/difference.html?

@okuta How do you think about shrinking ndarray seed into 64-bit in this way?

@okuta

okuta commented Oct 21, 2018

Copy link
Copy Markdown
Member

OK, This is acceptable.

@mrocklin

Copy link
Copy Markdown
Contributor Author

I've added a small section to the difference.html docs.

@okuta okuta self-assigned this Oct 21, 2018
@mrocklin

Copy link
Copy Markdown
Contributor Author

The motivation behind this change is to make it possible for dask.array to work well wth CuPy RandomState objects so that we can generate distributed cupy arrays for future testing.

@okuta okuta added cat:enhancement Improvements to existing features to-be-backported Pull-requests to be backported to stable branch labels Oct 21, 2018
@okuta okuta added this to the v6.0.0a1 milestone Oct 21, 2018
@okuta

okuta commented Oct 21, 2018

Copy link
Copy Markdown
Member

LGTM!

@okuta

okuta commented Oct 21, 2018

Copy link
Copy Markdown
Member

Jenkins, test this please.

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 37cdf33, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Comment thread cupy/random/generator.py Resolved
@kmaehashi

Copy link
Copy Markdown
Member

Jenkins, test this please.

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 747a056, target branch master) succeeded!

Comment thread cupy/random/generator.py Resolved
@okuta okuta modified the milestones: v6.0.0a1, v6 Oct 23, 2018
@kmaehashi

Copy link
Copy Markdown
Member

Jenkins, test this please.

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 06b4677, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

@kmaehashi

Copy link
Copy Markdown
Member

Test failures are not related to this PR.

@mrocklin

mrocklin commented Dec 7, 2018

Copy link
Copy Markdown
Contributor Author

Checking in here. Is there anything I should to do finish this up?

@toslunar
toslunar requested a review from okuta December 8, 2018 09:54
@okuta okuta modified the milestones: v6, v6.0.0b2 Dec 9, 2018
@okuta okuta added the st:test-and-merge (deprecated) Ready to merge after test pass. label Dec 9, 2018
@okuta

okuta commented Dec 9, 2018

Copy link
Copy Markdown
Member

Sorry, late reply.
LGTM!

@okuta
okuta merged commit e17ddc4 into cupy:master Dec 10, 2018
okuta added a commit to okuta/cupy that referenced this pull request Dec 10, 2018
Support Numpy arrays as seeds in RandomState
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:enhancement Improvements to existing features st:test-and-merge (deprecated) Ready to merge after test pass. to-be-backported Pull-requests to be backported to stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants