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 #14

Open
mujahirabbasi opened this issue Nov 1, 2018 · 2 comments
Open

Error #14

mujahirabbasi opened this issue Nov 1, 2018 · 2 comments

Comments

@mujahirabbasi
Copy link

Error in Test_Anomaly_Detector_public.py
theano.sandbox.cuda.use('gpu0')
AttributeError: 'module' object has no attribute 'cuda'

This is my .theanorc file:
[global]
floatX = float32
device = cuda0

[gpuarray]
preallocate = 0.8

@hali6779
Copy link

Hi, I have the same issue with you, do you have any solutions for that? Thanks in advance.

@poweryin
Copy link

Hi, @hali6779 , I solved this problem by changing the ".theanorc." file, which contains configuration information for theano library.

[global]
floatX = float32
optimizer=None
device = cuda
root=/usr/local/cuda-8.0 #cuda-8.0,视个人情况而定

[nvcc]
fastmath = True
[blas]
ldflags = -lopenblas

[cuda]
root = /usr/local/cuda-8.0

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

3 participants