Hi, I'm having an issue running theano. I'm hoping someone can direct me
towards a solution.
Thanks in advance,
Josh
Windows 10 x64
GTX 1060
CUDA 8.0
theano from - conda install -c rdonnelly theano=0.9.0rc1
pygpu from - conda install pygpu
my .theanorc.txt:
[cuda]
root=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0
[global]
device = cuda
floatX = float32
optimizer = fast_run
assert_no_cpu=warn
int_division=raise
[lib]
cnmem = 0.3
[dnn]
include_path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include
library_path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64
[nvcc]
optimizer_including = cudnn
fastmath = True
compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
[blas]
ldflags = -llapack -lblas
when I run the theano test from the theano website, i get:
Using cuDNN version 5110 on context None
Mapped name None to device cuda: GeForce GTX 1060 (0000:01:00.0)
[GpuElemwise{exp,no_inplace}(<GpuArrayType<None>(float32, (False,))>),
HostFromGpu(gpuarray)(GpuElemwise{exp,no_inplace}.0)]
Looping 1000 times took 0.399365 seconds
Result is [ 1.23178029 1.61879349 1.52278066 ..., 2.20771813 2.29967761
1.62323296]
Used the cpu
Then, when I run my code:
---------------------------------------------------------------------------GpuArrayException
Traceback (most recent call
last)<ipython-input-7-c073eb7a6e14> in <module>()----> 1 vgg = Vgg16()
C:\Users\jgele\Desktop\fast-ai\vgg16.py in __init__(self) 41 def
__init__(self): 42 self.FILE_PATH =
'http://files.fast.ai/models/'---> 43 self.create() 44
self.get_classes() 45
C:\Users\jgele\Desktop\fast-ai\vgg16.py in create(self) 123
self.ConvBlock(2, 64) 124 self.ConvBlock(2, 128)--> 125
self.ConvBlock(3, 256) 126 self.ConvBlock(3, 512) 127
self.ConvBlock(3, 512)
C:\Users\jgele\Desktop\fast-ai\vgg16.py in ConvBlock(self, layers, filters)
94 for i in range(layers): 95
model.add(ZeroPadding2D((1, 1)))---> 96
model.add(Convolution2D(filters, 3, 3, activation='relu')) 97
model.add(MaxPooling2D((2, 2), strides=(2, 2))) 98
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\models.py in
add(self, layer) 330
output_shapes=[self.outputs[0]._keras_shape]) 331 else:--> 332
output_tensor = layer(self.outputs[0]) 333 if
isinstance(output_tensor, list): 334 raise TypeError('All
layers in a Sequential model '
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\engine\topology.py
in __call__(self, x, mask) 544
'`layer.build(batch_input_shape)`') 545 if len(input_shapes) ==
1:--> 546 self.build(input_shapes[0]) 547 else:
548 self.build(input_shapes)
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\layers\convolutional.py
in build(self, input_shape) 434
name='{}_W'.format(self.name), 435
regularizer=self.W_regularizer,--> 436
constraint=self.W_constraint) 437 if self.bias: 438
self.b = self.add_weight((self.nb_filter,),
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\engine\topology.py
in add_weight(self, shape, initializer, name, trainable, regularizer,
constraint) 416 """ 417 initializer =
initializations.get(initializer)--> 418 weight = initializer(shape,
name=name) 419 if regularizer is not None: 420
self.add_loss(regularizer(weight))
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\initializations.py
in glorot_uniform(shape, name, dim_ordering) 64 fan_in, fan_out =
get_fans(shape, dim_ordering=dim_ordering) 65 s = np.sqrt(6. / (fan_in
+ fan_out))---> 66 return uniform(shape, s, name=name) 67 68
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\initializations.py
in uniform(shape, scale, name, dim_ordering) 31 32 def uniform(shape,
scale=0.05, name=None, dim_ordering='th'):---> 33 return
K.random_uniform_variable(shape, -scale, scale, name=name) 34 35
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\backend\theano_backend.py
in random_uniform_variable(shape, low, high, dtype, name) 187 def
random_uniform_variable(shape, low, high, dtype=None, name=None): 188
return variable(np.random.uniform(low=low, high=high, size=shape),--> 189
dtype=dtype, name=name) 190 191
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\keras\backend\theano_backend.py
in variable(value, dtype, name) 85 else: 86 value =
np.asarray(value, dtype=dtype)---> 87 variable =
theano.shared(value=value, name=name, strict=False) 88
variable._keras_shape = value.shape 89 variable._uses_learning_phase =
False
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\theano\compile\sharedvalue.py
in shared(value, name, strict, allow_downcast, **kwargs) 266
try: 267 var = ctor(value, name=name, strict=strict,--> 268
allow_downcast=allow_downcast, **kwargs) 269
utils.add_tag_trace(var) 270 return var
C:\Users\jgele\Anaconda2\envs\py35\lib\site-packages\theano\gpuarray\type.py in
gpuarray_shared_constructor(value, name, strict, allow_downcast, borrow,
broadcastable, target) 653 type = GpuArrayType(value.dtype,
broadcastable, context_name=target) 654 deviceval =
pygpu.gpuarray.array(value, copy=(not borrow),--> 655
context=type.context) 656 return
GpuArraySharedVariable(type=type, value=deviceval, name=name, 657
strict=strict)
pygpu\gpuarray.pyx in pygpu.gpuarray.array (pygpu/gpuarray.c:12223)()
pygpu\gpuarray.pyx in pygpu.gpuarray.carray (pygpu/gpuarray.c:13105)()
pygpu\gpuarray.pyx in pygpu.gpuarray.pygpu_fromhostdata
(pygpu/gpuarray.c:9847)()
pygpu\gpuarray.pyx in pygpu.gpuarray.array_copy_from_host
(pygpu/gpuarray.c:5813)()
GpuArrayException: b'unspecified launch failure'
I would appreciate any suggestions for fixing or further diagnosing.
Josh
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.