Open
Description
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!
Metadata
Metadata
Assignees
Labels
No labels