You can also use the Theano flag warn_float6=pdb this will drop in you pdb (python debogger) when the float64 is created. So you know exactly where in your code this happen.
Fred On Mon, Oct 24, 2016 at 12:30 PM, Michael Klachko <[email protected]> wrote: > I figured it out - putting the following line in the code, (right after > theano function is defined): > > theano.printing.debugprint(<theano_function_name>, print_type=True) > > Will show the graph of all theano variables, with their type. From there I > saw that one of my numpy function (np.mean) did not have dtype specified. I > added dtype=theano.config.floatX and the warning disappeared. > > > > > > On Monday, October 24, 2016 at 8:23:01 AM UTC-7, Michael Klachko wrote: >> >> I enabled warn_float64 flag in theano config, and now when I'm running my >> neural net code, I'm getting the following: >> >> c:\Theano\theano\gof\graph.py:447: UserWarning: You are creating a >> TensorVariable with float64 dtype. You requested an action via the Theano >> flag warn_float64={ignore,warn,raise,pdb}. >> >> cp = self.__class__(self.type, None, None, self.name) >> >> >> How do I find out which variable is causing it? >> >> -- > > --- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
