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

Error when i run a very simple program with gpycnn #2

Open
KiroSummer opened this issue Nov 28, 2016 · 0 comments
Open

Error when i run a very simple program with gpycnn #2

KiroSummer opened this issue Nov 28, 2016 · 0 comments

Comments

@KiroSummer
Copy link

When I try to use gpu, I get a error "Segmentation fault (core dumped)"
My code is here, very simple:

#!/usr/bin/python
#coding: utf-8
  
import gpycnn as G
import pycnn as C
import numpy as np
  
model = G.Model()
model.add_parameters('w', (2, 2))
 
w = model['w']
matrix = np.random.uniform(-0.01, 0.01, w.shape())
w.load_array(matrix)

My code use the pycnn is ok, but when I convert to gpycnn, it will crash and will catch such problem
"Segmentation fault (core dumped)"

By the way, the line with load_ array can cause the error.
Did I use gpu model parameters with the wrong function?

Could you help me deal with it?
Thank you!

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