Re: [theano-users] Re: Cannot do a simple theano install (Python 2.7, Ubuntu 16.04, Theano 0.9, Cuda 8.0, TitanX GPU) due to pygpu errors

2017-06-30 Thread Pascal Lamblin
On Friday, June 30, 2017 at 9:50:58 PM UTC-4, Daniel Seita wrote: > > your plan worked! > Nice to hear that :) > Pascal and nouiz, just one last thing, this GPU backend is the first time > that Theano can run float64 with the GPU, right? I'm hoping to take > existing code which uses float64

Re: [theano-users] Re: Cannot do a simple theano install (Python 2.7, Ubuntu 16.04, Theano 0.9, Cuda 8.0, TitanX GPU) due to pygpu errors

2017-06-30 Thread Daniel Seita
Pascal: your plan worked! I previously had: $ echo $LD_LIBRARY_PATH /usr/local/lib:/usr/local/cuda-8.0:/usr/local/cuda-8.0/lib64:/usr/local/cuda -8.0/include:/home/daniel/mjpro131/bin:/home/daniel/mjpro131 ~$ echo $LIBRARY_PATH /usr/local/cuda/lib64 AH! My library path actually had `cuda` and

Re: [theano-users] Re: Cannot do a simple theano install (Python 2.7, Ubuntu 16.04, Theano 0.9, Cuda 8.0, TitanX GPU) due to pygpu errors

2017-06-30 Thread Daniel Seita
Hi nouiz and Pascal, thanks for the responses. I've been busy using the CPU version of Theano in the meantime, so sorry for the delay in responding. nouiz: I actually had my `cudnn.h` file in both a `lib64` directory and an `include` directory: ~$ ls -lh /usr/local/cuda-8.0/include/cudnn.h -r

Re: [theano-users] Re: Cannot do a simple theano install (Python 2.7, Ubuntu 16.04, Theano 0.9, Cuda 8.0, TitanX GPU) due to pygpu errors

2017-06-30 Thread Pascal Lamblin
Something weird seems to be happening: - theano detects that cuDNN is available, in fact it called _dnn_check_compile() and _dnn_check_version() successfully - however, calling _dnn_lib() failed, which means ctypes did not manage to find the cudnn library. Is /usr/local/cuda-8.0/lib64 in your LI

[theano-users] Re: Type mismatch TensorType(float64, row) TensorType(float64, matrix)

2017-06-30 Thread Pascal Lamblin
It's hard to know from that level, but somewhere there is a shared variable that is a row (1 x n matrix), and its update value is a full matrix (k x m). This could be a parameter of the model, or a value updated by the optimizer (something like a velocity). It is possible that the update value is

[theano-users] Re: How can I calculate the size of output of convolutional operation in theano?

2017-06-30 Thread Pascal Lamblin
On Monday, June 26, 2017 at 3:36:21 PM UTC-4, Sunjeet Jena wrote: > > Is there any way I can calculate the size of the output after the > Convolution Operation? > You can check theano.tensor.nnet.abstract_conv.get_conv_output_shape() -- --- You received this message because you are subscrib

Re: [theano-users] And operator doesn't work with theano logical operators

2017-06-30 Thread Pascal Lamblin
On Thursday, June 29, 2017 at 10:17:26 AM UTC-4, Sym wrote: > > I am using theano 0.9.0 and this function does not exist.. I can't find it > in the documentation either ! > That would be theano.tensor.and_ with a trailing underscore. > And in the theano docs it says that : > __{abs,neg,lt,le,g

[theano-users] Re: Gradient Problem (always 0)

2017-06-30 Thread Pascal Lamblin
I'm assuming m and n were defined as T.vector(), and that the last line of the "def rnn(...)" functions is actually "return x_t, r_t", is that correct? Do you have a non-zero gradient for Wrec? Can you monitor the value of theano.grad(cost, Wrec).sum() is? Normally, the sum of the gradient wrt Wr

Re: [theano-users] theano0.9 and cuda-8

2017-06-30 Thread Frédéric Bastien
You should not mix cuda version... Do you still use the old gpu back-end (device=gpu*) or the new back-end (device=cuda*)? Fred On Fri, Jun 30, 2017 at 9:57 AM wrote: > I trying to understand some unexplained behavior of my code. > To be sure that the problem is with my code and not with softw

Re: [theano-users] Deleting .theano each time I change server/machine/node

2017-06-30 Thread Frédéric Bastien
You can use this Theano flags to append to the default compiledir the hostname. This way you will have one for each computer, but it still will be in your home: compiledir_formet="compiledir_%(short_platform)s-%(processor)s-%(python_version)s-%(python_bitwidth)s-%(hostname)s But you can go simple

[theano-users] theano0.9 and cuda-8

2017-06-30 Thread ngupta
I trying to understand some unexplained behavior of my code. To be sure that the problem is with my code and not with software incompatibility I would like to sure about the correctness of my setup I have: theano version 0.9 CUDA_ROOT =/usr/local/cuda-7.5 LD_PATH=/usr/local/cuda-8/lib64:... PATH

Re: [theano-users] Gradient Problem (always 0)

2017-06-30 Thread Frédéric Bastien
You can try MonitorMode to step through all the computation of the function: http://deeplearning.net/software/theano/tutorial/debug_faq.html#how-do-i-step-through-a-compiled-function This will help you see what is going on during the execution. If you add names to your u, v and the output of dot,

Re: [theano-users] Re: Theano sort - new GPU implementation

2017-06-30 Thread Adam Becker
Well ... actually I opened that PR. I've pushed latest changes on Monday. I'm guessing it has not been reviewed yet because you guys are too busy? On Friday, June 30, 2017 at 8:36:51 PM UTC+8, nouiz wrote: > > There is a pr for topk, but it is not sorted. You can use it and keep the > sort on CP

[theano-users] Deleting .theano each time I change server/machine/node

2017-06-30 Thread André L
*Context of the issue * I work with Theano in my university server via SSH and with virtualenv. I dont have admin privileges. I can access several servers. Normally i work in server "D". But when i tried running the same experiment on server "R", it failed with illegal instruction. So i delet

Re: [theano-users] Always Segmentation fault(core dumped) when use theano(NOT when import)

2017-06-30 Thread Frédéric Bastien
Install the dev version of Theano. It contains segmentation fault fixes. If that don't work, tell us, but I think it should work. Le ven. 30 juin 2017 06:00, noodles a écrit : > Hello, > > I encounter a strange problem when using theano. These days I bought > a new computer and install

Re: [theano-users] Re: Theano sort - new GPU implementation

2017-06-30 Thread Frédéric Bastien
There is a pr for topk, but it is not sorted. You can use it and keep the sort on CPU for now. It will be faster like that I think. Le jeu. 29 juin 2017 21:11, Victor Campmany a écrit : > We are working on both sorts for 1D arrays and sort of an axis of an > nd-array. We are trying to release it

[theano-users] Always Segmentation fault(core dumped) when use theano(NOT when import)

2017-06-30 Thread noodles
Hello, I encounter a strange problem when using theano. These days I bought a new computer and install theano on it, and I can even import it in python with no error, but everytime I create a function, it corrupted with "Segmentation fault(core dumped)". Below is the detail: I h