Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Merge requests
!733
Draft: compatible for python version < 3.9
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: compatible for python version < 3.9
nifty2jax_ve
into
nifty2jax
Overview
3
Commits
1
Pipelines
1
Changes
1
1 unresolved thread
Hide all comments
Closed
Vincent Eberle
requested to merge
nifty2jax_ve
into
nifty2jax
3 years ago
Overview
3
Commits
1
Pipelines
1
Changes
1
1 unresolved thread
Hide all comments
Expand
quick fix
Edited
3 years ago
by
Vincent Eberle
0
0
Merge request reports
Compare
nifty2jax
nifty2jax (base)
and
latest version
latest version
4bb1632f
1 commit,
3 years ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
jifty/src/optimize.py
+
2
−
1
Options
@@ -152,7 +152,8 @@ def _newton_cg(
"
name
"
:
cg_name
,
"
time_threshold
"
:
time_threshold
}
cg_res
=
cg
(
Partial
(
hessp
,
pos
),
g
,
**
(
default_kwargs
|
cg_kwargs
))
new_kwargs
=
{
**
default_kwargs
,
**
cg_kwargs
}
cg_res
=
cg
(
Partial
(
hessp
,
pos
),
g
,
**
new_kwargs
)
nat_g
,
info
=
cg_res
.
x
,
cg_res
.
info
nhev
+=
cg_res
.
nfev
if
info
is
not
None
and
info
<
0
:
Loading