diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-03-11 13:30:07 -0400 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-03-11 13:30:07 -0400 |
commit | 8c248538a839dd34fb5599bcb126fe8d2f395fa5 (patch) | |
tree | 22df7af643600a75ba2c06218dc9fbe1112557a5 /Wrappers/Python | |
parent | 431cc82f3b09c337ec4d46e7c1d21a0a1b0dbc35 (diff) | |
download | framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.tar.gz framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.tar.bz2 framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.tar.xz framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.zip |
bugfix in adjoint
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-x | Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py b/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py index 8298c03..21ea104 100755 --- a/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py +++ b/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py @@ -91,7 +91,7 @@ class BlockOperator(Operator): Raises: ValueError if the contained Operators are not linear ''' - if not functools.reduce(lambda x,y: x and y, self.operators.is_linear(), True): + if not functools.reduce(lambda x, y: x and y.is_linear(), self.operators, True): raise ValueError('Not all operators in Block are linear.') shape = self.get_output_shape(x.shape, adjoint=True) res = [] |