Re: [theano-users] Re: Theano lives on as Aesara

2021-09-13 Thread Frédéric Bastien
Great works! Le ven. 7 mai 2021 11 h 25, Brandon T. Willard a écrit : > We have a GitHub Discussions set up for Aesara, so, if anyone has > Aesara-specific questions, comments, etc., post them to > https://github.com/pymc-devs/aesara/discussions. > > On Thursday, April 29, 2021 at 8:25:58 AM UTC

Re: [theano-users] Could not initialize pygpu error with CUDA 9.0 and latest Theano

2018-05-16 Thread Frédéric Bastien
creating 2 env seem the right thing to do. I do not think dnn.libary_path override LD_LIBRARY_PATH. On Thu, May 10, 2018 at 7:06 PM Michael Klachko wrote: > What is the best way to do that? Should I use separate conda environments > for theano and tensorflow, and create LD_LIBRARY_PATH in each?

Re: [theano-users] Could not initialize pygpu error with CUDA 9.0 and latest Theano

2018-05-10 Thread Frédéric Bastien
You could have multiple cuda version installed to have TF working. Le jeu. 10 mai 2018 16:28, Michael Klachko a écrit : > After struggling with this error for a day, I decided to upgrade CUDA to > 9.1 and CuDNN to 7.1. After that I got "your driver might be too old" > error, which was resolved b

Re: [theano-users] NotImplementedError: We didn't implemented yet the case where scan do 0 iteration

2018-05-04 Thread Frédéric Bastien
Quick reply. The problem is that you are having 0 iteration in your recurence and we do not support that. So check why in your code you could end up with just 0 iteration. Frédéric On Thu, Apr 26, 2018 at 3:12 AM jau94 wrote: > Hi, > > I am using Theano == 1.0.1 for the Sequential Matching Netw

Re: [theano-users] Using theano.tensor.repeat with repeats.ndim == 1

2018-05-04 Thread Frédéric Bastien
You can try to implement it with tensor.alloc() and set_subtensor with broadcasting. this will work with gradient and on the GPU. On Thu, May 3, 2018 at 7:02 PM Pascal Lamblin wrote: > Oh, right. > > Then, I don't think it will be implemented. > And I don't think RepeatOp is optimized to use th

Re: [theano-users] Convolution with input shape = output shape

2018-05-04 Thread Frédéric Bastien
You can use the parameter border_mode=... to do what you want. see: http://deeplearning.net/software/theano/library/tensor/nnet/conv.html#theano.tensor.nnet.conv2d On Fri, May 4, 2018 at 5:14 AM Tayeb Benzenati wrote: > i want create a cnn using theano , but i want to keep the same shape of > t

Re: [theano-users] Using NumPy C-API based implementation for BLAS functions.

2018-04-25 Thread Frédéric Bastien
It should install g++. But your error message is probably different then what the original user gave. What is your own error? Le jeu. 29 mars 2018 20:03, Qinpeng Wang a écrit : > Hi, > > This link: http://deeplearning.net/software/theano/install_windows.html > mentions: > > Optional requireme

Re: [theano-users] can i use theano with one of these( Angular4, ionic3, JavaScript, phonegap)

2018-03-08 Thread Frédéric Bastien
Theano could work as a connection, but theano require a compiler at run time. You do not want that on a phone I think. So Theano in its current form do not seem a good software for your need. Frédéric On Thu, Feb 22, 2018 at 2:16 AM <3h1...@gmail.com> wrote: > Hi everybody, > i have a question t

Re: [theano-users] problem of "out of memory" for theano 0.9.0

2018-03-08 Thread Frédéric Bastien
Something else could use the memory of the GPU, like the GUI or other process in back-ground. Can you reboot the computer? If that do not fix the problem, try to execute the command line "nvidia-smi" in a terminal. Frédéric On Tue, Feb 27, 2018 at 10:54 AM Fei Tao wrote: > Hi, Dear all, > > I h

Re: [theano-users] Avoiding HostFromGPU at every Index into Shared Variable?

2018-02-07 Thread Frédéric Bastien
On the GPU, not all indexing are fast. The slices are fast (just a view). But on advanced indexing, only this version have been well optimized: a_tensor[a_vector_of_int] The vector_of_int can be on any of the dimensions from memory. But for sure on the first dimensions. We have code that support

Re: [theano-users] Numpy error during optimization phase

2018-02-07 Thread Frédéric Bastien
I'm not able to reproduce it. On which OS? Which Theano version? Can you try a Theano version at least 1.0.1? You can ignore this "error". Mostly, some optimization are skipped. But I would still like to fix it. I ran the tests like this: THEANO_FLAGS=device=cuda,floatX=float32 nosetests test_c

Re: [theano-users] Re: global name 'float32_shared_constructor' is not defined

2018-02-07 Thread Frédéric Bastien
Thanks for your solution. But I think you had multiple Theano version installed. Removing the conda version and updating the pip version seem to fix your problem. Fred On Fri, Feb 2, 2018 at 2:56 AM Rakesh Malviya wrote: > Solved the issue by: > > 1. I replaced mkl 2018 to mkl 2017 by using con

Re: [theano-users] Error while running code on gpu

2018-02-07 Thread Frédéric Bastien
Try just this: python -c "import pygpu" You need to install this packge. We recommand conda: conda install theano pygpu On Tue, Feb 6, 2018 at 12:55 AM wrote: > This the error i'm getting when I'm trying to run the following command > : CUDA_VISIBLE_DEVICES=0 > THEANO_FLAGS=mode=FAST_RUN,devi

Re: [theano-users] Numpy error during optimization phase

2018-02-02 Thread Frédéric Bastien
Thanks for the report. Which version of numpy do you use? The problem seem related to your numpy version from the error message. On Wed, Jan 24, 2018 at 5:05 AM wrote: > Hi everyone, > > While using an OpFromGraph involving some operations with binary values, > there is an optimization error: >

Re: [theano-users] global name 'float32_shared_constructor' is not defined

2018-02-01 Thread Frédéric Bastien
Which version of Theano do you use? Updating Theano could help. Fred On Thu, Feb 1, 2018 at 1:38 AM Rakesh Malviya wrote: > Hi, > > I am running theano code from following repo > https://github.com/luheng/deep_srl > > I am getting following error: > Traceback (most recent call last): > File "

Re: [theano-users] ModuleNotFoundError: No module named 'pkg_resources'

2018-01-31 Thread Frédéric Bastien
How did you install Theano? We only support installing Theano with our conda package on Windows. Le dim. 14 janv. 2018 10:32, Karin Westin a écrit : > Hi! > > I'm going through the theano tutorial, and when running the function > theano.scan, I get the following error: > > Traceback (most recent

Re: [theano-users] Re: GpuArrayException: cuInit: CUDA_ERROR_UNKNOWN: unknown error

2018-01-31 Thread Frédéric Bastien
Thanks for the answer. Fred Le jeu. 25 janv. 2018 15:11, Hendrik Weideman a écrit : > For anyone else coming across this post, it turns out CUDA 9.1 doesn't > support Ubuntu 14.04: > > http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements > > Everything works

Re: [theano-users] Porting GPU operations from the old GPU backend to the CUDA backend

2018-01-31 Thread Frédéric Bastien
You should be able to do similar things. Fred Le mer. 17 janv. 2018 14:37, Minh Ngo a écrit : > Hello, > > Before theano version 1.0 it was quite straightforward to port existent > CUDA layers available in Caffe to Theano by writing a small piece of CUDA > code and specifying the *.cu file usin

Re: [theano-users] AttributeError: module 'theano' has no attribute 'ifelse'

2018-01-31 Thread Frédéric Bastien
It is not imported by default. Just import theano.ifelse Fred Le sam. 13 janv. 2018 17:10, ziqi zhang a écrit : > I am installing theano following the instructions here > http://deeplearning.net/software/theano/install_ubuntu.html, on linux > ubuntu. > > Specifically, the commands are: > > ste

Re: [theano-users] Help use AMD graphics card with Theano 1.01

2018-01-31 Thread Frédéric Bastien
Yes Le lun. 29 janv. 2018 11:57, Mikel Esparza a écrit : > Oh, does it means that I only can use the GPU if it is a NVDIA gpu? Sorry > but I'm new in this world. > > Thank you for your quick answer!! > > > On Monday, January 29, 2018 at 5:47:08 PM UTC+1, nouiz wrote: > >> Hi, >> >> we have just

Re: [theano-users] Help use AMD graphics card with Theano 1.01

2018-01-29 Thread Frédéric Bastien
Hi, we have just experimental support for OpenCL. It isn't in a usable state. Due to the news bellow, we won't finish that: https://groups.google.com/forum/#!msg/theano-users/7Poq8BZutbY/rNCIfvAEAwAJ Frédéric On Mon, Jan 29, 2018 at 11:14 AM Mikel Esparza wrote: > Hi!, I'm trying to configure

Re: [theano-users] Re: GpuCorrMM encountered a CUBLAS error

2018-01-10 Thread Frédéric Bastien
Do you have multiple cudnn version installed? I have the impression Theano is in an environment with multiple cudnn version available. Can you delete your Theano cache? This could also help. theano-cache purge On Wed, Dec 13, 2017 at 9:20 AM Beatriz G. wrote: > After trying a lot of thigns,

Re: [theano-users] Import error and gcc problem

2018-01-10 Thread Frédéric Bastien
Which version of Theano do you use? How did you install it? We currently only support via our conda packages on windows: conda install -c mila-udem theano pygpu be sure to uninstall any previous installation of Theano pygpu/libgpuarray pygpu only needed for GPU. On Tue, Jan 9, 2018 at 12:19 AM

Re: [theano-users] Re: six package

2018-01-10 Thread Frédéric Bastien
Pylearn2 isn't supported anymore. Maybe it don't support newer Theano versoin. So make sure to try Theano dev version and if that don't work, try older Theano version. Maybe you should investigate other framework. See: https://groups.google.com/forum/#!msg/theano-users/7Poq8BZutbY/rNCIfvAEAwAJ Fr

Re: [theano-users] GSOC 2018

2018-01-10 Thread Frédéric Bastien
no, see: https://groups.google.com/forum/#!msg/theano-users/7Poq8BZutbY/rNCIfvAEAwAJ On Tue, Jan 2, 2018 at 10:46 PM achie27 wrote: > Hi! > Will Theano be participating in GSOC this year? > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users"

Re: [theano-users] Why is Theano.ifelse.ifelse executing both tensor functions?

2018-01-10 Thread Frédéric Bastien
Hi, Theano is a functional programming system. To see only one branch executed, it must be in the graph. Here is an example with the Print op that have a printing as a side effect: import theano.ifelse import theano.tensor as T a=theano.shared(2) b=theano.shared(10) theano.ifelse.ifelse(T.gt(b,a)

Re: [theano-users] Re: Cannot update Theano to 1.0.0

2017-11-28 Thread Frédéric Bastien
We have problems supporting mac computers with GPUs as CUDA isn't well supported there. Do you need the GPU? If not, just install Theano like this: conda install -c mila-udem theano >From memory, pygpu isn't build anymore for mac. On Tue, Nov 28, 2017 at 10:32 AM mcomin wrote: > From Theano we

Re: [theano-users] can not import theano: GpuArrayException: Could not load "nvrtc64_70.dll"

2017-11-17 Thread Frédéric Bastien
Update pygpu and libgpuarray to 0.7.5. it should fix this problem. Le mar. 14 nov. 2017 06:43, a écrit : > I am new in keras and Theano: > > I am trying to trying to install keras and theano for while. > > I get follwing error: > > ERROR (theano.gpuarray): Could not initialize pygpu, support di

Re: [theano-users] cuDNN

2017-11-17 Thread Frédéric Bastien
You need to install cudnn. We don't install it for you. Le lun. 13 nov. 2017 20:33, roman.foell via theano-users < theano-users@googlegroups.com> a écrit : > Hello, > > I get the following error: > > Code hier eingeben...Can not use cuDNN on context None: cannot compile > with cuDNN. We got this

Re: [theano-users] Unable to set up CUDA in optimus laptop in windows 10 OS

2017-11-10 Thread Frédéric Bastien
I never used optimus on windows, so I can't help. I would highly recommand that you install Theano 1.0rc1 after you have made the cuda sample run. See this page: https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end(gpuarray ) On linux, for optimus to work, you need to enable i

Re: [theano-users] GPUArrayException

2017-11-10 Thread Frédéric Bastien
You seem to be mixing Theano and libgpuarray version. Maybe even mixing different libgpuarray. Make sure to uninstall all libgpuarray version. Depending of how you installed it, you can look at this: http://deeplearning.net/software/libgpuarray/installation.html#step-by-step-install-user-library

Re: [theano-users] Failed to compile cuda_ndarray.cu

2017-11-03 Thread Frédéric Bastien
Here is the link to help you install it: https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end(gpuarray) On Fri, Nov 3, 2017 at 1:09 PM Frédéric Bastien wrote: > We do not support anymore that version of Theano. Try Theano 1.0rc1: > c697eeab > > On Mon, Oct 30,

Re: [theano-users] Failed to compile cuda_ndarray.cu

2017-11-03 Thread Frédéric Bastien
We do not support anymore that version of Theano. Try Theano 1.0rc1: c697eeab On Mon, Oct 30, 2017 at 3:37 PM Adam Jones wrote: > *My system info:* > - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu > 16.04.2 > - Theano installed: via conda > - Theano version:'0.9.0.dev-c6

Re: [theano-users] Re: Theanorc configuration

2017-11-03 Thread Frédéric Bastien
Sorry, but we don't have time to support Theano 0.9. You can try Theano 1.0rc1: https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end(gpuarray ) Frédéric On Mon, Oct 30, 2017 at 7:49 PM ephi5757 via theano-users < theano-users@googlegroups.com> wrote: > Got it working. I foun

Re: [theano-users] Find the variable that causes DisconnectedInputError

2017-11-03 Thread Frédéric Bastien
Update to Theano 1.0rc1. We updated error information heavily and I think it will help your case: https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end(gpuarray) On Wed, Nov 1, 2017 at 9:37 AM Mathias Müller wrote: > Hi, > > I am getting the following theano error: > > Traceba

Re: [theano-users] How to keep the same mask for Dropout layers for multiple batches?

2017-11-03 Thread Frédéric Bastien
Make different Theano function. One to generate the mask, make that function return it or put it in a shared variable. Then the other Theano function use that mask. Frédéric On Wed, Nov 1, 2017 at 12:29 PM Farhood Etaati wrote: > Hello there! > > I'm trying to implement a custom dropout layer w

Re: [theano-users] THEANORC configuration

2017-11-03 Thread Frédéric Bastien
This line should be in a normal shell, not a python shell: THEANORC="C:\SciSoft\.theanorc.txt" If you want to do that inside a Python shell, you should do it before you import theano: import os os.envirion["THEANORC"]="C:\SciSoft\.theanorc.txt" I strongly recommand that you use Theno 1.0rc1: h

Re: [theano-users] Re: MILA and the future of Theano

2017-10-25 Thread Frédéric Bastien
Just a historical note. Before Theano, we had another framework. It took 1 year to prototype Theano, then it took 1 year to have most people use Theano internally, but the previous framework was still used for 10 year. So I won't be surprised it Theano continue to be used for a long time. On We

Re: [theano-users] NameError: global name 'CVM' is not defined

2017-10-23 Thread Frédéric Bastien
Note, the Compute Canada cluster problem is independent of Theano, we also have it ourself. Do not install anaconda manually yourself. Otherwise, you will need to "fix" the installation due to the strange Compute Canada configuration that end up with the error you show. It should work with there s

Re: [theano-users] Strange theano / C++ problem

2017-10-11 Thread Frédéric Bastien
One option it to use Windows conda. It have all what you need. So it will remove cygwin and should fix the compatibility Pascal explained. Le dim. 8 oct. 2017 23:07, Pascal Lamblin a écrit : > Hi, > > The central error seems to be: > > #error "LONG_BIT definition appears wrong for platform (bad

Re: [theano-users] Theano does not optimise CNN

2017-10-11 Thread Frédéric Bastien
Try to update Theano to the dev version. Maybe you ended up with the few. Bad commit that produce wrong results. Le lun. 2 oct. 2017 12:52, Fraser Robinson a écrit : > Hi, > > I've been trying to work through Convolutional Neural Networks (LeNet) >

Re: [theano-users] Theano gradient of subtensor

2017-10-11 Thread Frédéric Bastien
You need to take the subtensor in the forward to save all computation. It is a very problem to remove useless computation due to a subtensor at the end of the graph. We cover very few optimisation compared to what is needed. So move the subtensor in the forward. Fred Le lun. 2 oct. 2017 23:35, dh

Re: [theano-users] Re: RuntimeError: Mixed dnn version. The header is version 5105 while the library is version 5110.

2017-10-11 Thread Frédéric Bastien
Hi, Make sure in your environment variables there is only the directory of one version. This should work, we work like that to allow user of the same computer select the cudnn version they want to use. Le mar. 10 oct. 2017 07:49, 艾小科 a écrit : > > Hello, I met the similar problem. And I have mu

Re: [theano-users] cuDNN Mixed dnn version. The header is from one version, but we link with a different version(5110,6021)

2017-10-11 Thread Frédéric Bastien
Answered in the other email you send about that. Le mar. 10 oct. 2017 10:28, 艾小科 a écrit : > when I import theano, there is a problem. > >>> import theano > WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be > removed in the next release (v0.10). Please switch to the gpua

Re: [theano-users] Passing a np.float32 variable to user-defined GPUOP with a CUDAndArray variable receives unexpected values after decimal.

2017-10-11 Thread Frédéric Bastien
Python float are always float64. So if you downcast them to float32 there can be presision loss. Frédéric Le dim. 8 oct. 2017 02:22, Adit Bhargav a écrit : > Hello, > > I have a Python float32 variable. I am passing this variable to a GPU OP > written in Theano. The variable I am collecting in

Re: [theano-users] Passing sequence of sparse matrices to scan

2017-09-25 Thread Frédéric Bastien
Sadly, we don't support what you want. Frédéric On jeu. 21 sept. 2017 06:29 Fab wrote: > > Hello, > how could I pass to theano.scan a sequence of sparse matrices ? I can't > seem to find a theano sparse tensor. > > Am I forced to convert to dense matrices and then create a tensor out of > it so

Re: [theano-users] AssertionError when adding Sparse to float

2017-09-15 Thread Frédéric Bastien
The problem is probably the + in sparse.sqrt(new_a) + self.epsilon Here you add a scalar to a sparse variable. WHich will make it non sparse! We force the user to make explicit conversion from sparse to dense to prevent unexpected memory grow. You can manually force the conversion of the sparse va

Re: [theano-users] Offline installation of Theano in Windows 10

2017-09-15 Thread Frédéric Bastien
On windows, for GPU, we only support conda installation. So you will need to download our conda packages and install them. for a tarbal, you must extract it then you can install it with the instruction here: http://deeplearning.net/software/theano_versions/dev/install_windows.html#bleeding-edge-i

Re: [theano-users] Plugging new optimser to Theano

2017-09-15 Thread Frédéric Bastien
I don't have time for that. You don't give enough information in your email for other people to help you. So I would recommand that you send full code or full code in attachment + code snipet of the important part in the email. That way maybe someone else will have the time and would answer. I wo

Re: [theano-users] Plugging new optimser to Theano

2017-09-14 Thread Frédéric Bastien
Hi, Theano do not specify the optimizer to use. It is up to you to build your own optimizer. There is framework like Lasagne et Keras on top of Theano that provide optimizers. If you use such framework, you should ask on there mailing list how to specify your own optimizer. Frédéric On Wed, Sep

Re: [theano-users] Theano import * throws error

2017-09-08 Thread Frédéric Bastien
You probably have many Theano installed. Uninstall all of them. Try to import theano. Make sure Theano isn't found, then reinstall it. Frédéric On Sat, Sep 2, 2017 at 10:49 AM wrote: > Hi, > I have installed Theano for first time when I import it will always throw > the following error. I have

Re: [theano-users] GPU convolutions implementation

2017-09-08 Thread Frédéric Bastien
Hi, the fastest implementation is from cudnn that is closed source. But we have one implementation based on GEMM that is open source. See the class BaseGpuCorrMM and its chield classes: https://github.com/Theano/Theano/blob/master/theano/gpuarray/blas.py#L444 Frédéric On Fri, Sep 1, 2017 at 10:

Re: [theano-users] Overhead of Elemwise{Erfinv} on CPU

2017-09-08 Thread Frédéric Bastien
Thanks for the report. Here is a fix: https://github.com/Theano/Theano/pull/6396 Mostly, we where calling the scipy function per element instead of per tensor! Frédéric On Thu, Sep 7, 2017 at 12:03 PM Juan Camilo Gamboa Higuera < juancami...@gmail.com> wrote: > if you launch ipython and try s

Re: [theano-users] CUDNN_STATUS_INTERNAL_ERROR

2017-09-08 Thread Frédéric Bastien
Hi, I strongly suggest that you update cudnn to v7 (or at least v6). They fixed some of those type of errors. Updating Theano to 0.10.beta1 could also fix that, as we have some work around in some cases for that. The ideal would be to update both. If you update Theano to 0.10.beta2 or the dev v

Re: [theano-users] I cann't import theano,help me please.(On ArchLinux)

2017-09-08 Thread Frédéric Bastien
Hi, For some about 2 weeks, Theano master wasn't working with the master of libgpuarray. Now this have been fixed. So update Theano again and it should work. Or downgrade libgpuarray to 0.6.9. Theano 0.10beta1 support libgpuarray 0.6.* Theano 0.10.beta2 support libgpuarray 0.7.* If you use a de

Re: [theano-users] theano mean for certain indices in a vector

2017-09-08 Thread Frédéric Bastien
You must make your indices interger like `B = T.ivector('B')`. With that, you can do indexing to select just the values you want: A[B] Thean compute the mean on them: C = A[B].mean() If E should be a vector, you can concatenate C and D like this: theano.tensor.concatenate([C, D]) Frédéric O

Re: [theano-users] Re: Announcing Theano 0.10.0beta1

2017-09-08 Thread Frédéric Bastien
Yes, we continue to support Python 2.7. Frédéric On Sat, Sep 2, 2017 at 12:41 AM Jim Goodwin wrote: > Hi, > Does this new release, Theano 0.10.0beta1, work with Python v 2.7.13? > > I'm on Win7, using Theano with Keras. 2.0.8. > > (Yes, I'd rather be using the newer Python, but also need to

Re: [theano-users] MemoryError: alloc failed and Segmentation fault

2017-09-08 Thread Frédéric Bastien
For the alloc, Theano try to allocate 5G for one node in the graph. So even if you have 64G total on the computer, you will need way more then 5G. Try to use smaller minibatch or lower other memory usage. You are really using too much memory. You could use scan_checkpoint that is done to lower th

Re: [theano-users] Re: Significant increase in GPU memory consumption with new GPU backend

2017-08-30 Thread Frédéric Bastien
f fit is restarted after kernel > interrupt). > > (b) -1 (model.fit crashes on problem of any size (even which work in (a) > initially) with invalid argument error in cuMemAlloc) --> this one appears > to be an outright bug. > > Should I open github ticket? > > On 30 Aug

Re: [theano-users] Re: Significant increase in GPU memory consumption with new GPU backend

2017-08-30 Thread Frédéric Bastien
Update to Theano dev version. There is many updates that could help you. If that don't fix your problem, open an issue on github. For preallocation, which flag to do you use? On Tue, Aug 29, 2017 at 8:30 PM Anton Murashov wrote: > Hello all! > > I have a very similar problem with new gpuarray

Re: [theano-users] ImageNet ILSVRC2012 training and validation data sets

2017-08-28 Thread Frédéric Bastien
Thanks to forward the confirmation. Frédéric On Mon, Aug 28, 2017 at 2:54 PM ephi5757 via theano-users < theano-users@googlegroups.com> wrote: > FYI, see email below. > > > > - Forwarded Message - > > From: E Park > > To: > > Cc: ImageNet Support ; ilsvrc2...@image-net.org < > ilsvrc2

Re: [theano-users] ImageNet ILSVRC2012 training and validation data sets

2017-08-28 Thread Frédéric Bastien
I didn't used this dataset myself recently. But it would be a very big error that the validation set is a subset of the training set. This should never be the case. Fred On mer. 23 août 2017 18:47 ephi5757 via theano-users < theano-users@googlegroups.com> wrote: > Is the ImageNet ILSVRC2012 vali

Re: [theano-users] Differences between theano.shared and numpy.ndarray.

2017-08-28 Thread Frédéric Bastien
It is not a bug. Currently, by default the shape of a shared variable can changes during the execution. So we can't use the shape to determine the broadcasting pattern. You can pass the parameter broadcastable=() where you put the broadcast pattern. By default it is never broadcastable. Fred On

Re: [theano-users] Re: GpuElemwise working with old backend but not with new ?

2017-08-23 Thread Frédéric Bastien
note, this was fixed. thanks for the report. Frédéric On Thu, Aug 17, 2017 at 9:42 PM Rodolphe Cambier wrote: > To work around I simply used a vector of floats instead of Int32. > Ok I'll make an issue on github. > > > Le jeudi 17 août 2017 22:10:18 UTC+2, nouiz a écrit : > >> thanks. I don't

Re: [theano-users] Using multiple GPUs

2017-08-22 Thread Frédéric Bastien
The first one is probably faster most of the time. But this interface isn't week supported on Theano. This is still experimental and have known crash cases. On mar. 22 août 2017 12:33 Alfred Ferrer Florensa wrote: > Hello, > > I am not sure where to ask this, but here seem the most appropiate p

Re: [theano-users] ValueError: dimension mismatch in x,y_idx arguments

2017-08-22 Thread Frédéric Bastien
To get better error message from Theano, disable the GPU and use this flag. optimizer=fast_compile In this way, Theano will probably give you a stack trace where you created the computation that cause problem. On lun. 21 août 2017 19:15 ephi5757 via theano-users < theano-users@googlegroups.com> w

Re: [theano-users] Get the name of the gpu device used in Theano

2017-08-22 Thread Frédéric Bastien
This give you the string we print: theano.gpuarray.init_dev.devmap['cuda0'].devname example string: "GeForce GTX 750" Frédéric On Sun, Aug 13, 2017 at 12:41 PM Geppetto Null wrote: > I am interested in getting the name of the gpu device I use. That is, when > I import theano, I get the follow

Re: [theano-users] Re: GpuElemwise working with old backend but not with new ?

2017-08-17 Thread Frédéric Bastien
thanks. I don't know when @abergeron can check that. You can probably work around it by introducing a cast to floatX before the log10. Can you make an issue on github so we don't loose track of this? On Wed, Aug 16, 2017 at 11:00 PM Rodolphe Cambier wrote: > I was able to pinpoint the problem to

Re: [theano-users] RuntimeError: error doing operation: CUDNN_STATUS_INTERNAL_ERROR if I switch to gpuarray backend

2017-08-16 Thread Frédéric Bastien
Can you update cudnn to v7 that is release? They also fixed some of this type of error from memory. On Wed, Aug 16, 2017 at 2:14 AM wrote: > I was using theano (0.9.0.dev_RELEASE) with pygpu (0.6.9). If I switch to > gpuarray backend (device=cuda), RuntimeError happens 'error doing > operation:

Re: [theano-users] ValueError: dimension mismatch in x,y_idx arguments

2017-08-16 Thread Frédéric Bastien
I think the problem are the values in the index vector. Double check that. Frédéric On Wed, Aug 16, 2017 at 5:49 PM ephi5757 via theano-users < theano-users@googlegroups.com> wrote: > I'm retraining my implementation of the neural network model AlexNet in > Theano and not long after it initializ

Re: [theano-users] RuntimeError: error doing operation: CUDNN_STATUS_INTERNAL_ERROR if I switch to gpuarray backend

2017-08-16 Thread Frédéric Bastien
Update to the dev version of Theano. We have work around many such case. On mer. 16 août 2017 02:14 wrote: > I was using theano (0.9.0.dev_RELEASE) with pygpu (0.6.9). If I switch to > gpuarray backend (device=cuda), RuntimeError happens 'error doing > operation: CUDNN_STATUS_INTERNAL_ERROR', bu

Re: [theano-users] Re: Low GPU utilization for larger batches

2017-08-14 Thread Frédéric Bastien
We merged in Theano dev the CTC wrapper. I would recommend that you update to it. Le lun. 14 août 2017 05:50, Ameretat Reith a écrit : > Nevermind, turn out warp-ctc binding I'm using, just works with CPU > > -- > > --- > You received this message because you are subscribed to the Google Groups

Re: [theano-users] derivative of function based on eigenvalues in theano

2017-08-10 Thread Frédéric Bastien
The problem is smat(x) It return list of list of Theano variable. This isn't a Theano variable itself. You can have Theano contact all of this correctly to make a new corresponding Theano variable with: v,w=nlin.eigh(theano.tensor.stacklists(smat(x))) Fred On Tue, Aug 1, 2017 at 7:37 AM Jyotira

Re: [theano-users] why does this gradient is invalid?

2017-08-09 Thread Frédéric Bastien
This is a bug in one Theano optimization: local_dimshuffle_subtensor Thanks for the report. I made an issue so that we don't forget it: https://github.com/Theano/Theano/issues/6288 Frédéric On Wed, Aug 9, 2017 at 4:50 AM 佐藤優 wrote: > I wonder why bellow code is invalid.. > > from numpy import

Re: [theano-users] Split Op (OpFromGraph) to save intermediate results for grad

2017-08-09 Thread Frédéric Bastien
Sorry, but I'm not able to answer this grad question. Hopefully someone else that better understand that part can answer. Fred On Mon, Jul 31, 2017 at 9:43 AM wrote: > I am trying to build an Op with a custom/optimized gradient formula. To > override the automatic differenciation, I'm trying to

Re: [theano-users] Why is this GpuFromHost call generated?

2017-08-09 Thread Frédéric Bastien
t(y, dtype='int32') > > Do you think these things cause the problem? > > Thank you, > Haining > > Haining Yu on Gmail > > On Wed, Aug 9, 2017 at 2:36 PM, Frédéric Bastien < > frederic.bast...@gmail.com> wrote: > >> My guess is that you use the old

Re: [theano-users] Error while compiling two theano functions

2017-08-09 Thread Frédéric Bastien
note, I made an issue about this: https://github.com/Theano/Theano/issues/6287 Fred On Mon, Jul 3, 2017 at 7:51 AM Frédéric Bastien wrote: > This is still experimental and we don't have to to work on it now. > > For multiple GPU, you should do data parallelism. The is 3 framew

Re: [theano-users] Why is this GpuFromHost call generated?

2017-08-09 Thread Frédéric Bastien
My guess is that you use the old GPU backend. Can you confirm you use the Theano flag device=gpu? And that also you have float64 in the graph. The old backend don't support them. I suggest that you install the just released 0.10 beta and that you use the new backend with device=cuda. Also,you can

Re: [theano-users] Grouped Convolution Error

2017-08-09 Thread Frédéric Bastien
Their have been a fix in Theano. Can you update and try again? Le lun. 24 juil. 2017 19:56, Michael Klachko a écrit : > I'm trying the new grouped convolutions feature in the latest Theano > version, so I ran a simple convnet with CIFAR-10: 32x32 RGB input images > (batch size = 128), and the fi

Re: [theano-users] How to build different average pooling operation I'll call it local average pooling ?

2017-08-09 Thread Frédéric Bastien
I don't understand the problem with using normal operation. Can you give this code? I don't see more problem with that implementation vs a normal average pooling. Le mar. 8 août 2017 07:36, Feras Almasri a écrit : > I want to have an node that take the average of the only activated points > in t

Re: [theano-users] Theano ConftestImportFailure error after installing

2017-08-09 Thread Frédéric Bastien
We don't use py.test, but nosetests. Fred Le mar. 8 août 2017 12:12, Sara Saeed a écrit : > > I am new to Ubuntu and I tried to install Theano using Anaconda. > > After tracking some other errors and solving them. I am stuck with this > error, which I don't understand when running py.test. > >

Re: [theano-users] Error with theano. This was working fine earlier

2017-08-09 Thread Frédéric Bastien
You changed something in your installation. Try to delete your Theano cache. If that don't fix it try to remove all your Python. You probably have mixed Python in your environment. Le mer. 19 juil. 2017 10:37, SUNITHA a écrit : > Dear All, > > This is the error message I get: > > *C:\Users\Sunit

Re: [theano-users] Replace a Shared Variable by a scalar

2017-08-09 Thread Frédéric Bastien
When you do y=... You don't replace y. Theano create a new node (a Python object), and assign it to a Python variable y. It is the same as if you named the second variable y2. I don't understand what you want to do, so I can't be more precise. Fred Le ven. 4 août 2017 20:22, a écrit : > Hello

Re: [theano-users] plotting the inner scan operations in d3viz?

2017-08-08 Thread Frédéric Bastien
Hi, there was plan to make d3viz support Scan, but it wasn't finished and we don't have someone working on this now. You can probably hack it with something like this: # get the compiled scan node: f= theano.function(...) scans = [n for n in f.maker.fgraph.apply_node if isinstance(n.op, theano.s

Re: [theano-users] Split Op (OpFromGraph) to save intermediate results for grad

2017-08-08 Thread Frédéric Bastien
I don't understand what you mean by "forward the precomputed output" What I would recommand is to make 1 op for the forward. The intermediate value that can be reused for the gradient, make them output. Don't use them in the forward, but you can reuse them your grad override. Frédéric On Mon, Ju

Re: [theano-users] Batched matrix operations in Theano

2017-08-08 Thread Frédéric Bastien
Do you want to make a PR or of this? Le dim. 23 juil. 2017 08:20, Maxim Kochurov a écrit : > class BatchedDiag(tt.Op): > """ > Fast BatchedDiag allocation > """ > __props__ = () > > def make_node(self, diag): > diag = tt.as_tensor_variable(diag) > if diag.type

Re: [theano-users] Memory issues

2017-08-08 Thread Frédéric Bastien
nstall (`python setup.py develop`), or is something more >> complicated needed? >> >> On Tue, Aug 1, 2017 at 9:37 AM, Frédéric Bastien < >> frederic.bast...@gmail.com> wrote: >> >>> The problem is g++ that is missing memory. How much CPU ram your >>

Re: [theano-users] Re: Function that should return dict returns list after pickling

2017-08-07 Thread Frédéric Bastien
This is fixed in https://github.com/Theano/Theano/pull/6275 Fred On Fri, Aug 4, 2017 at 1:48 PM Pascal Lamblin wrote: > Thanks for the report. > I've added that to the list of things we should fix in pickling and > unpickling Function object, see > https://github.com/Theano/Theano/issues/5736 >

Re: [theano-users] Simplest op with gradient example

2017-08-01 Thread Frédéric Bastien
Just don't use otypes, itypes. Implement the make_node() method. It isn't hard. We won't extend shortly as_op or otypes/itypes. If you have question about make_node(), you can ask them. Fred On Tue, Aug 1, 2017 at 12:33 PM 'Michael Osthege' via theano-users < theano-users@googlegroups.com> wrote

Re: [theano-users] Re: How to delete theano model from GPU before initiating another model

2017-07-07 Thread Frédéric Bastien
You don't need to pass the shape. This is optional information. In fact, currently we don't use it anymore. We used it in the past. Maybe we will use it again later. But in all cases, it was optional. On Fri, Jul 7, 2017 at 5:31 AM Feras Almasri wrote: > I checked theano documentation and it sa

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

2017-07-05 Thread Frédéric Bastien
You are mixing cuda 7.5 and 8 in your end variable. Never do this. Delete your Theano cache. It is not safe to reuse it. The new backend support cuda 8. Your warning is about cudnn version. This is not the same. If in a clean environment,you still have problems, give the error you have. Fred Le

Re: [theano-users] Re: How to delete theano model from GPU before initiating another model

2017-07-05 Thread Frédéric Bastien
Pure Theano Do not expect shapes. By default shapes can changes. You just need to be consistent in the computation you do on the shapes. If you set the batchsize shape to None, you are not using pure Theano. Do you use lasagne? Keras? Can you show the code where you set the shape to None? Fred

Re: [theano-users] Re: How create activation function from scratch in python

2017-07-05 Thread Frédéric Bastien
Give the full error message. Without our I can't help. Fred Le mer. 5 juil. 2017 12:33, Bruno Messias a écrit : > I' need call "custom" function with a given variable x, such that > > type(x) > > > On Wednesday, July 5, 2017 at 12:53:22 PM UTC-3, Bruno Messias wrote: >> >> For didactic reason

Re: [theano-users] How to delete theano model from GPU before initiating another model

2017-07-04 Thread Frédéric Bastien
You don't need to re create a new model of you just change the batch size. What make you think this is needed? Some great framework on top of Theano will request that you set the batchsize to None to tell that it will change. Fred Le mar. 4 juil. 2017 17:21, Feras Almasri a écrit : > I'm re-ini

Re: [theano-users] How to run a single failing test, and what might the error I have be about?

2017-07-04 Thread Frédéric Bastien
I confirm Pascal answer. The problem is that your NumPy version is more recent then your Theano version. As Pascal told, you can ignore it or update Theano to the dev version. Fred Le sam. 1 juil. 2017 15:03, Pascal Lamblin a écrit : > It looks like an issue in the test itself (maybe that only

Re: [theano-users] ValueError: dimension mismatch in args to gemv (200,0)x(250)->(0)

2017-07-04 Thread Frédéric Bastien
You have a problem in your code. To help you identify it, u you can n follow the HINTS hidded in the long output, use the Theano flag optimizer=fast_compile Le lun. 3 juil. 2017 10:02, 周泽彪 a écrit : > Building model > Loading data >File > "/opt/zebiao.zhou/anaconda2/lib/python2.7/site-pac

Re: [theano-users] Error while compiling two theano functions

2017-07-03 Thread Frédéric Bastien
This is still experimental and we don't have to to work on it now. For multiple GPU, you should do data parallelism. The is 3 framework that can help you, theano-mpi, platoon and synkronous. Fred Le sam. 1 juil. 2017 16:33, Ramana Subramanyam a écrit : > Hi, > This error that I reported was so

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

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

2017-06-30 Thread Frédéric Bastien
stand >> what is going on. Maybe the debugprint parameter stop_on_name=True could >> also help make that graph more readable. >> >> On Thu, Jun 29, 2017 at 9:22 AM Frédéric Bastien >> wrote: >> > The + of the + T.dot(u, v). >>> >>> The debugprin

  1   2   3   4   5   6   >