Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
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
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
resolve
Commits
40c262b5
Commit
40c262b5
authored
4 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
77be8ecd
No related branches found
No related tags found
1 merge request
!9
Mpi adder
Pipeline
#93685
passed
4 years ago
Stage: build_docker
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resolve/mpi_operators.py
+2
-3
2 additions, 3 deletions
resolve/mpi_operators.py
with
2 additions
and
3 deletions
resolve/mpi_operators.py
+
2
−
3
View file @
40c262b5
...
...
@@ -52,9 +52,8 @@ class AllreduceSumLinear(ift.LinearOperator):
def
apply
(
self
,
x
,
mode
):
self
.
_check_input
(
x
,
mode
)
return
ift
.
utilities
.
allreduce_sum
(
[
op
.
apply
(
x
,
mode
)
for
op
in
self
.
_oplist
],
self
.
_comm
)
lst
=
[
op
.
apply
(
x
,
mode
)
for
op
in
self
.
_oplist
]
return
ift
.
utilities
.
allreduce_sum
(
lst
,
self
.
_comm
)
def
draw_sample
(
self
,
from_inverse
=
False
):
sseq
=
ift
.
random
.
spawn_sseq
(
self
.
_nwork
)
...
...
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