If you give as_tensor_variable() an numpy ndarray, we will restect its dtype:
as_tensor_variable(numpy.asarray(0.12)) Fred On Sat, Mar 18, 2017 at 1:40 PM Archit Vora <[email protected]> wrote: > Is there anyway to specify this explicitly ? > > TypeError: We expected inputs of types '[TensorType(int8, scalar), > TensorType(int8, scalar), TensorType(float64, scalar)]' but got types > '[TensorType(float64, scalar), TensorType(float64, scalar), > TensorType(float64, scalar)]' > > > Thanks ! > -Archit > > -- > > --- > 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.
