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

Tensorflow float32 dtypes #133

Open
hudson-ai opened this issue Oct 24, 2022 · 1 comment
Open

Tensorflow float32 dtypes #133

hudson-ai opened this issue Oct 24, 2022 · 1 comment

Comments

@hudson-ai
Copy link

My apologies if this feature exists somewhere, but I can't find it.

Is there a way to use cvxpy layers with tf.float32 parameters? I understand if the actual optimization step has to use float64 precison, but is there a way to accept float32 inputs/outputs/gradients? If not, is this a feature that could be added?

Thanks!

@hudson-ai
Copy link
Author

It seems that these layers CAN accept float32 input, but their outputs are always float64 (as are computed gradients)

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

1 participant