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

Update setulb call from Scipy for updated signature of 1.15 #6207

Merged
merged 6 commits into from
Jan 8, 2025
Merged
7 changes: 3 additions & 4 deletions python/cuml/cuml/tsa/batched_lbfgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def fprime_f(x):
for ib in range(num_batches)
]
iwa = [np.copy(np.zeros(3 * n, np.int32)) for ib in range(num_batches)]
task = [np.copy(np.zeros(1, "S60")) for ib in range(num_batches)]
csave = [np.copy(np.zeros(1, "S60")) for ib in range(num_batches)]
task = [np.copy(np.zeros(1, np.int32)) for ib in range(num_batches)]
ln_task = [np.copy(np.zeros(1, np.int32)) for ib in range(num_batches)]
lsave = [np.copy(np.zeros(4, np.int32)) for ib in range(num_batches)]
isave = [np.copy(np.zeros(44, np.int32)) for ib in range(num_batches)]
dsave = [np.copy(np.zeros(29, np.float64)) for ib in range(num_batches)]
Expand Down Expand Up @@ -175,12 +175,11 @@ def fprime_f(x):
wa[ib],
iwa[ib],
task[ib],
iprint,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also remove this from the functions' signature if it has no more effect?

csave[ib],
lsave[ib],
isave[ib],
dsave[ib],
maxls,
ln_task[ib]
)

xk = np.concatenate(x)
Expand Down
Loading