We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fe44e commit bae2d64Copy full SHA for bae2d64
1 file changed
example.py
@@ -1,5 +1,6 @@
1
import cvxpy as cp
2
import torch
3
+
4
from cvxtorch import TorchExpression
5
6
n = 5
@@ -15,4 +16,4 @@
15
16
tch_exp_eval = tch_exp.torch_expression #Torch expression evaluation function.
17
tch_exp_dict = tch_exp.variables_dictionary #Variables mapping
18
tch_res = tch_exp_eval(tch_x, tch_y) #Contains a torch.Tensor [7.0]*n
-print(f"The result tensor is {tch_res}.")
19
+print(f"The result tensor is {tch_res}.")
0 commit comments