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
D
D2O
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
D2O
Commits
ad862d52
Commit
ad862d52
authored
Jun 12, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed distribute_data for global_shape == ()
parent
ee663df9
Pipeline
#13536
failed with stage
in 3 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
d2o/distributed_data_object.py
d2o/distributed_data_object.py
+1
-1
d2o/distributor_factory.py
d2o/distributor_factory.py
+1
-1
No files found.
d2o/distributed_data_object.py
View file @
ad862d52
...
...
@@ -189,7 +189,7 @@ class distributed_data_object(Loggable, Versionable, object):
dtype
=
dtype
,
**
kwargs
)
self
.
distribution_strategy
=
distribution_strategy
self
.
distribution_strategy
=
self
.
distributor
.
distribution_strategy
self
.
dtype
=
self
.
distributor
.
dtype
self
.
shape
=
self
.
distributor
.
global_shape
self
.
local_shape
=
self
.
distributor
.
local_shape
...
...
d2o/distributor_factory.py
View file @
ad862d52
...
...
@@ -320,7 +320,7 @@ class distributor(object):
result_data
=
np
.
empty
(
self
.
local_shape
,
dtype
=
self
.
dtype
)
elif
np
.
isscalar
(
data
):
result_data
=
np
.
empty
(
self
.
local_shape
,
dtype
=
self
.
dtype
)
result_data
[
:
]
=
data
result_data
[
()
]
=
data
elif
isinstance
(
data
,
np
.
ndarray
)
or
\
isinstance
(
data
,
distributed_data_object
)
or
\
h5py_dataset_Q
:
...
...
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