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

Add chainerx tests to test_checkpoint.py #8429

Merged
merged 1 commit into from
Dec 2, 2019
Merged

Add chainerx tests to test_checkpoint.py #8429

merged 1 commit into from
Dec 2, 2019

Conversation

keisukefukuda
Copy link
Member

This PR is a part of #8031. It adds ChainerX tests to test_checkpoint.py

@keisukefukuda keisukefukuda added cat:test Test or CI related. ChainerMN Related to ChainerMN. labels Nov 13, 2019
checkpointer = create_multi_node_checkpointer(name='hoge',
comm=self.communicator,
cp_interval=23,
gc_interval=32)
nums = [np.random.randint(4096) for _ in range(234)]
nums = [int(xp.random.uniform() * 4096) for _ in range(234)]
Copy link
Member

Choose a reason for hiding this comment

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

is this caused by the same problem with https://github.com/chainer/chainer/pull/8346/files#r346664255

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it is just because chainerx doesn't have randint() so instead we have to use random.uniform(), which returns floating-point values.

@belldandyxtq
Copy link
Member

pfnci, test this please

@chainer-ci
Copy link
Member

Jenkins CI test (for commit 30cdb9f, target branch master) succeeded!

@belldandyxtq belldandyxtq merged commit b2e221e into chainer:master Dec 2, 2019
@kmaehashi kmaehashi added this to the v7.0.0 milestone Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:test Test or CI related. ChainerMN Related to ChainerMN.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants