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

Chainer utils use deprecated methods #43

Open
massongit opened this issue Nov 18, 2017 · 0 comments
Open

Chainer utils use deprecated methods #43

massongit opened this issue Nov 18, 2017 · 0 comments

Comments

@massongit
Copy link
Contributor

(Related to #7)
These methods use deprecated methods when using Chainer v1.24.0:

def my_cuda_get_device(cuda, device_id):
if version < '2.0':
cuda.get_device(device_id).use()
else:
# v2.0
cuda.get_device_from_id(device_id).use()

def my_cleargrads(net):
if version < '2.0':
net.zerograds()
else:
# v2.0
net.cleargrads()

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

No branches or pull requests

1 participant