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
5e53e253
Commit
5e53e253
authored
May 27, 2020
by
Philipp Arras
Browse files
Fixup
parent
82fde86c
Pipeline
#75663
passed with stages
in 13 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/operator.py
View file @
5e53e253
...
@@ -294,10 +294,11 @@ class Operator(metaclass=NiftyMeta):
...
@@ -294,10 +294,11 @@ class Operator(metaclass=NiftyMeta):
def
_simplify_for_constant_input_nontrivial
(
self
,
c_inp
):
def
_simplify_for_constant_input_nontrivial
(
self
,
c_inp
):
from
.simplify_for_const
import
SlowPartialConstantOperator
from
.simplify_for_const
import
SlowPartialConstantOperator
s
=
(
'SlowPartialConstantOperator used. You might want to consider'
,
s
=
(
'SlowPartialConstantOperator used. You might want to consider'
' implementing `_simplify_for_constant_input_nontrivial()` for'
,
' implementing `_simplify_for_constant_input_nontrivial()` for'
' this operator
.
'
)
' this operator
:
'
)
logger
.
warning
(
s
)
logger
.
warning
(
s
)
logger
.
warning
(
self
.
__repr__
())
return
None
,
self
@
SlowPartialConstantOperator
(
self
.
domain
,
c_inp
.
keys
())
return
None
,
self
@
SlowPartialConstantOperator
(
self
.
domain
,
c_inp
.
keys
())
def
ptw
(
self
,
op
,
*
args
,
**
kwargs
):
def
ptw
(
self
,
op
,
*
args
,
**
kwargs
):
...
...
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