Ming-Yee Tsang
2018-03-05 15:41:04 UTC
I am trying to build my model using a cost function based on eigenvalues of
a symmetric (or possibly Hermitian) matrix. I get the eigenvalues using
theano.tensor.nlinalg.eigh (and I tried theano.tensor.slinalg.eigvalsh with
similar results), but when I try to take the gradient of the cost with
respect to two shared variables, I get the error
TypeError: Eigh{UPLO='L'}.grad illegally returned an integer-valued
variable. (Input index 0, dtype complex128)
I verified that cost and the shared variables have type float64, so where
is the complex128 coming from?
a symmetric (or possibly Hermitian) matrix. I get the eigenvalues using
theano.tensor.nlinalg.eigh (and I tried theano.tensor.slinalg.eigvalsh with
similar results), but when I try to take the gradient of the cost with
respect to two shared variables, I get the error
TypeError: Eigh{UPLO='L'}.grad illegally returned an integer-valued
variable. (Input index 0, dtype complex128)
I verified that cost and the shared variables have type float64, so where
is the complex128 coming from?
--
---
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+***@googlegroups.com.
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.