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
Commits
e20caeab
Commit
e20caeab
authored
4 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Implement proper constant support 9/n
parent
5a2e38b6
No related branches found
No related tags found
1 merge request
!545
Proper constants
Pipeline
#77012
passed
4 years ago
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/extra.py
+1
-1
1 addition, 1 deletion
src/extra.py
test/test_operators/test_correlated_fields.py
+2
-2
2 additions, 2 deletions
test/test_operators/test_correlated_fields.py
with
3 additions
and
3 deletions
src/extra.py
+
1
−
1
View file @
e20caeab
...
...
@@ -318,7 +318,7 @@ def _linearization_value_consistency(op, loc):
def
_check_nontrivial_constant
(
op
,
loc
,
tol
,
ntries
,
only_r_differentiable
,
metric_sampling
,
max_combinations
=
np
.
inf
):
if
isinstance
(
op
.
domain
,
DomainTuple
):
return
# FIXME ?
return
keys
=
op
.
domain
.
keys
()
combis
=
[]
for
ll
in
range
(
1
,
len
(
keys
)):
...
...
This diff is collapsed.
Click to expand it.
test/test_operators/test_correlated_fields.py
+
2
−
2
View file @
e20caeab
...
...
@@ -109,6 +109,6 @@ def testAmplitudesInvariants(sspace, N):
for
ampl
in
fa
.
normalized_amplitudes
:
ift
.
extra
.
check_operator
(
ampl
,
ift
.
from_random
(
ampl
.
domain
),
ntries
=
3
,
max_combinations
=
5
)
ntries
=
1
,
max_combinations
=
3
)
ift
.
extra
.
check_operator
(
op
,
ift
.
from_random
(
op
.
domain
),
ntries
=
3
,
max_combinations
=
5
)
ntries
=
1
,
max_combinations
=
5
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment