Skip to content

Commit 2fc0d20

Browse files
committed
add value propagation
1 parent 9d0f1e0 commit 2fc0d20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cvxpy/reductions/expr2smooth/canonicalizers/exp_canon.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
"""
16-
17-
import numpy as np
18-
1916
from cvxpy.expressions.variable import Variable
2017

2118

@@ -24,4 +21,6 @@ def exp_canon(expr, args):
2421
return expr, []
2522
else:
2623
t = Variable(args[0].shape)
24+
if args[0].value is not None:
25+
t.value = args[0].value
2726
return expr.copy([t]), [t==args[0]]

0 commit comments

Comments
 (0)