Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast input data and testvalues to theano.config.floatX #1640

Closed
twiecki opened this issue Jan 3, 2017 · 2 comments
Closed

Cast input data and testvalues to theano.config.floatX #1640

twiecki opened this issue Jan 3, 2017 · 2 comments

Comments

@twiecki
Copy link
Member

twiecki commented Jan 3, 2017

When theano.config.floatX and the default numpy float dtype do not match (as is the case when you want to use the GPU and set floatX to float32 but numpy is on float64) it causes a lot of problems that require manual casting of all the parameters that get passed in. We should automatically cast everything that get's passed to floatX.

Not sure if there is a proper way to do that in theano, @nouiz?

@nouiz
Copy link
Contributor

nouiz commented Jan 12, 2017 via email

@twiecki
Copy link
Member Author

twiecki commented Jan 12, 2017

@nouiz I wouldn't think so. What is supposed to happen when I set a tag.test_value of a theano float32 with a numpy array of dtype float64? Or when I multiply a theano tensor of float32 with a numpy array float 64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants