We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d0f1e0 commit 2fc0d20Copy full SHA for 2fc0d20
cvxpy/reductions/expr2smooth/canonicalizers/exp_canon.py
@@ -13,9 +13,6 @@
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
"""
16
-
17
-import numpy as np
18
19
from cvxpy.expressions.variable import Variable
20
21
@@ -24,4 +21,6 @@ def exp_canon(expr, args):
24
return expr, []
25
22
else:
26
23
t = Variable(args[0].shape)
+ if args[0].value is not None:
+ t.value = args[0].value
27
return expr.copy([t]), [t==args[0]]
0 commit comments