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

Specify CVXPY version to use '*' for matrix multiplication #134

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

rahulnair23
Copy link

pip install pulls the latest version of CVXPY, version 1.1.15. Using the the BRCG algorithm with this version results in the following run time warning several times that cannot be filtered.

UserWarning: This use of ``*`` has resulted in matrix multiplication.
Using ``*`` for matrix multiplication has been deprecated since CVXPY 1.1.
    Use ``*`` for matrix-scalar and vector-scalar multiplication.
    Use ``@`` for matrix-matrix and matrix-vector multiplication.
    Use ``multiply`` for elementwise multiplication.

Reverting to an older version, by specifying a version in setup.py allows for this deprecated use. Assumes CVXPY isn't used by other algorithms in the toolkit.

Signed-off-by: Rahul Nair <rahul.nair@ie.ibm.com>
@vijay-arya vijay-arya merged commit 36459f2 into Trusted-AI:master Oct 12, 2021
@vijay-arya
Copy link
Collaborator

Thanks @rahulnair23

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

Successfully merging this pull request may close these issues.

3 participants