Re: [theano-users] NoneConst must be TensorType error with fast_run, but not on fast_compile?

2016-10-15 Thread Michael Harradon
that issue. > > > > > On an unrelated note, your use case looks a lot like a convolution. > > Maybe there is a way of expressing it by using the convolution operation > > in Theano, which would be much more efficient than a for loop or scan. > > &g

Re: [theano-users] Re: Segmentation fault when setting lib.amdlibm=True and using trigonometric operations. How to debug?

2016-10-15 Thread Michael Harradon
I'm hitting this problem myself, as well. Ubuntu 14.04 gcc 4.8.4 amdlibm-3.1 libopenblas-dev 0.2.8 Would appreciate any suggestions - running with amdlibm off for the moment. Best, Michael On Friday, March 11, 2016 at 12:49:04 PM UTC-5, Pascal Lamblin wrote: > > On Fri, Mar 11, 2016, Juan

[theano-users] NoneConst must be TensorType error with fast_run, but not on fast_compile?

2016-10-15 Thread Michael Harradon
I'm attempting to write a differentiable, parameterized image rotation layer in Theano with decent performance - as result I'm doing some slightly unusual things in terms of indexing in order to get decent performance. When I try to optimize the resulting theano graph using fast_run I get a

[theano-users] Current best practices for saving compiled functions with updates to shared variables

2016-12-07 Thread Michael Harradon
Hello all, I've found a number of threads on this, but most of them are rather old or refer to functions without updates, so I was hoping to check for some new advice. I have a function that performs some training via updates that I run on 16 different processes running 16 different GPUs -

[theano-users] Re: For loop in theano

2017-04-07 Thread Michael Harradon
You want to use the scan function as an accumulator. The accumulate by adding example in the scan docs is functionally very similar. SIGMA_trf and MU are your seqs variables. On Friday, April 7, 2017 at 6:59:22 AM UTC-4, roman...@googlemail.com wrote: > > I need a for loop for calculating my

[theano-users] Re: How can I take a gradient through a random normal distribution?

2017-06-17 Thread Michael Harradon
Typically people use the reparameterization trick to handle this. See the original variational autoencoder paper, and example lasagne implementation here: https://github.com/Lasagne/Recipes/blob/master/examples/variational_autoencoder/variational_autoencoder.py#L92 On Friday, June 16, 2017 at