Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
3030e93d
Commit
3030e93d
authored
Jul 18, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added `distribution_strategy=x.distribution_strategy` to default fields in InvertibleOperatorMixin
parent
e1e13bd9
Pipeline
#15054
passed with stages
in 14 minutes and 38 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
nifty/operators/invertible_operator_mixin/invertible_operator_mixin.py
...rs/invertible_operator_mixin/invertible_operator_mixin.py
+8
-4
No files found.
nifty/operators/invertible_operator_mixin/invertible_operator_mixin.py
View file @
3030e93d
...
...
@@ -71,7 +71,8 @@ class InvertibleOperatorMixin(object):
def
_times
(
self
,
x
,
spaces
,
x0
=
None
):
if
x0
is
None
:
x0
=
Field
(
self
.
target
,
val
=
0.
,
dtype
=
x
.
dtype
)
x0
=
Field
(
self
.
target
,
val
=
0.
,
dtype
=
x
.
dtype
,
distribution_strategy
=
x
.
distribution_strategy
)
(
result
,
convergence
)
=
self
.
__inverter
(
A
=
self
.
inverse_times
,
b
=
x
,
...
...
@@ -80,7 +81,8 @@ class InvertibleOperatorMixin(object):
def
_adjoint_times
(
self
,
x
,
spaces
,
x0
=
None
):
if
x0
is
None
:
x0
=
Field
(
self
.
domain
,
val
=
0.
,
dtype
=
x
.
dtype
)
x0
=
Field
(
self
.
domain
,
val
=
0.
,
dtype
=
x
.
dtype
,
distribution_strategy
=
x
.
distribution_strategy
)
(
result
,
convergence
)
=
self
.
__inverter
(
A
=
self
.
adjoint_inverse_times
,
b
=
x
,
...
...
@@ -89,7 +91,8 @@ class InvertibleOperatorMixin(object):
def
_inverse_times
(
self
,
x
,
spaces
,
x0
=
None
):
if
x0
is
None
:
x0
=
Field
(
self
.
domain
,
val
=
0.
,
dtype
=
x
.
dtype
)
x0
=
Field
(
self
.
domain
,
val
=
0.
,
dtype
=
x
.
dtype
,
distribution_strategy
=
x
.
distribution_strategy
)
(
result
,
convergence
)
=
self
.
__inverter
(
A
=
self
.
times
,
b
=
x
,
...
...
@@ -98,7 +101,8 @@ class InvertibleOperatorMixin(object):
def
_adjoint_inverse_times
(
self
,
x
,
spaces
,
x0
=
None
):
if
x0
is
None
:
x0
=
Field
(
self
.
target
,
val
=
0.
,
dtype
=
x
.
dtype
)
x0
=
Field
(
self
.
target
,
val
=
0.
,
dtype
=
x
.
dtype
,
distribution_strategy
=
x
.
distribution_strategy
)
(
result
,
convergence
)
=
self
.
__inverter
(
A
=
self
.
adjoint_times
,
b
=
x
,
...
...
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