Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
413e8ee5
Commit
413e8ee5
authored
Mar 31, 2021
by
Philipp Arras
Browse files
exec_time: Support non-explicit energy operators
parent
b5e93218
Pipeline
#97377
passed with stages
in 11 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/sugar.py
View file @
413e8ee5
...
...
@@ -479,7 +479,7 @@ def exec_time(obj, want_metric=True):
res
=
obj
(
lin
)
logger
.
info
(
'Operator call with linearization: {}'
.
format
(
time
()
-
t0
))
if
isinstance
(
obj
,
EnergyOperator
):
if
obj
.
target
is
DomainTuple
.
scalar_domain
(
):
t0
=
time
()
res
.
gradient
logger
.
info
(
'Gradient evaluation: {}'
.
format
(
time
()
-
t0
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment