Theano functions can have multiple outputs. What error are you getting?

On Monday, May 29, 2017 at 2:52:17 PM UTC-7, rogelio andrade wrote:
>
> Hi
>
>
> I am using this theano code MLP 
> <https://github.com/zxie/vae/blob/master/mlp.py> which implements a 
> variational AE. I am interested on getting self.mu and self.var when the 
> MLP is used in the decoder. However, I am not sure what is the easiest way 
> to do such modification in this code (and on the vae.py), basically I need 
> something like this:
>
>
> # for use as decoder
> if y:
> assert(eps is None)
> # XXX specific to [0, 1] outputs
> self.out = [T.nnet.sigmoid(self.mu),self.mu,self.var]
> self.cost = -T.sum(log_diag_mvn(self.out, self.var)(y))
>
>
> but of course this does not work. Is it a way to get multiple outputs as 
> above? or how can I get the mu and var in the decoder step?
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to theano-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to