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

about DNN using cvxpylayer to handle the output #163

Open
babuqi opened this issue Feb 15, 2025 · 0 comments
Open

about DNN using cvxpylayer to handle the output #163

babuqi opened this issue Feb 15, 2025 · 0 comments

Comments

@babuqi
Copy link

babuqi commented Feb 15, 2025

I'm using a DNN to solve a problem, and i set the batchsize 10, every sample get a 4-dimension vector, so the output of the DNN is a 10*4 tensor.
Now i want to use cvxpylayer to project the output into my feasible region, and use the adjusted output to construct a loss function to do back propragation, by the way, one constraint of my porblem is Ax>b, A is a matrix. How should set the DCO to solve the proj. task in one times, ranther than one sample by one sample, or, how to make the grad between the output of dnn and DCO connected.

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