theano

Python won't find variable in module

 ̄綄美尐妖づ 提交于 2019-12-07 07:19:20
问题 I just started playing around with Theano but have a strange problem in Eclipse. I am trying to import the config module to run some example code. The import works fine and I can see what's in the module. Here is the simple code I am trying: from theano import config print config This works fine and I get an output like: floatX (('float64', 'float32')) Doc: Default floating-point precision for python casts Value: float32 ... and some more lines like that. Unfortunately if I use the following

Nvidia Theano docker image not available

天大地大妈咪最大 提交于 2019-12-07 06:27:22
问题 Trying to run docker command : nvidia-docker run -d -p 8888:8888 -e PASSWORD="123abcChangeThis" theano_secure start-notebook.sh # Then open your browser at http://HOST:8888 taken from https://github.com/nouiz/Theano-Docker returns error : Error: image library/theano_secure:latest not found Appears the theano_secure image is not currently available ? Searching for theano_secure : $ nvidia-docker search theano_secure:latest NAME DESCRIPTION STARS OFFICIAL AUTOMATED The return of this command is

IPython module import error: /usr/bin/ld: cannot find -lpython2.7. collect2: ld returned 1 exit status

让人想犯罪 __ 提交于 2019-12-07 05:08:28
I'm using the Python module Theano on a server. It is not pre-installed on there so I installed it in my home folder along with some other modules that weren't on the server. I get the following error when I "import theano" in IPython. Problem occurred during compilation with the command line below: g++ -shared -g -march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288 -mtune=generic -D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D NPY_ARRAY_ENSURECOPY=NPY_ENSURECOPY -D NPY_ARRAY_ALIGNED=NPY_ALIGNED -D NPY

Failed to compile cuda_ndarray.cu: libcublas.so.7.5: cannot open shared object file

戏子无情 提交于 2019-12-07 05:04:20
问题 I am trying to import theano library in an aws instance to use GPU. I have written a python script using boto to automate aws setup which will essentially do an ssh to the instance from my local machine and then start a bash script where I do " python -c 'import theano'" to start the GPU. But I get the following error: ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: libcublas.so.7.5: cannot open shared object file: No such file or directory When I tried to import theano module

How configure theano on Windows?

谁都会走 提交于 2019-12-07 04:24:53
问题 I have Installed Theano on Windows machine and followed the configuration instructions. I placed the following .theanorc.txt file in C:\Users\my_username folder: #!sh [global] device = gpu floatX = float32 [nvcc] fastmath = True # flags=-m32 # we have this hard coded for now [blas] ldflags = # ldflags = -lopenblas # placeholder for openblas support I tried to run the test, but haven't managed to run it on GPU. I guess the values from .theanorc.txt are not read, because I added the line print

How Can I use my GPU on Ipython Notebook?

旧巷老猫 提交于 2019-12-07 02:19:39
问题 OS : Ubuntu 14.04LTS Language : Python Anaconda 2.7 (keras, theano) GPU : GTX980Ti CUDA : CUDA 7.5 I wanna run keras python code on IPython Notebook by using my GPU(GTX980Ti) But I can't find it. I want to test below code. When I run it on to Ubuntu terminal, I command as below (It uses GPU well. It doesn't have any problem) First I set the path like below export PATH=/usr/local/cuda/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH Second I run the code as below THEANO

How can you load all batch data into GPU memory in Keras (Theano backend)?

痴心易碎 提交于 2019-12-07 02:04:06
问题 Keras loads data onto the GPU batch-by-batch (noted by the author here). For small datasets, this is very inefficient. Is there a way to modify Keras or call Theano functions directly (after defining the model in Keras) to allow all batches to be moved to the GPU up front, and training done using the batches already in GPU memory? (Someone asked the same question on the Keras list a few weeks ago, but has no replies so far.) 回答1: Just hard-wire your data into the model as a non-trainable

nvcc fatal : Cannot find compiler 'cl.exe' in PATH although Visual Studio 12.0 is added to PATH

∥☆過路亽.° 提交于 2019-12-07 01:40:51
问题 I have followed all the instructions from https://datanoord.com/2016/02/01/setup-a-deep-learning-environment-on-windows-theano-keras-with-gpu-enabled/ but can't seem to get it work. I have added C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin to my PATH variable Every time I run the code from the Theano website to test whether a CPU or GPU is used, it gives me a fatal error of "nvcc fatal : Cannot find compiler 'cl.exe' in PATH" Here is the code I use to test: from theano import

ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None

a 夏天 提交于 2019-12-06 23:45:44
问题 C:\Users\meela\Anaconda3\python.exe E:/TTIGAN/test.py You can find the C code in this temporary file: C:\Users\meela\AppData\Local\Temp\theano_compilation_error_zncbj7_k Traceback (most recent call last): File "C:\Users\meela\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 81, in <module> actual_version, force_compile, _need_reload)) ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug information: force

Theano HiddenLayer Activation Function

时光毁灭记忆、已成空白 提交于 2019-12-06 19:22:40
问题 Is there anyway to use Rectified Linear Unit (ReLU) as the activation function of the hidden layer instead of tanh() or sigmoid() in Theano? The implementation of the hidden layer is as follows and as far as I have searched on the internet ReLU is not implemented inside the Theano. class HiddenLayer(object): def __init__(self, rng, input, n_in, n_out, W=None, b=None, activation=T.tanh): pass 回答1: relu is easy to do in Theano: switch(x<0, 0, x) To use it in your case make a python function