Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
91032b52
Commit
91032b52
authored
Nov 14, 2017
by
Martin Reinecke
Browse files
pedantic change
parent
03b8712a
Pipeline
#21612
passed with stage
in 4 minutes and 15 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
91032b52
...
...
@@ -313,7 +313,7 @@ class Field(object):
new_shape
[
self
.
domain
.
axes
[
ind
][
0
]:
self
.
domain
.
axes
[
ind
][
-
1
]
+
1
]
=
wgt
.
shape
wgt
=
wgt
.
reshape
(
new_shape
)
if
ind
==
0
:
# we need to distribute the weights along axis 0
if
dobj
.
distaxis
(
self
.
_val
)
>=
0
and
ind
==
0
:
# we need to distribute the weights along axis 0
wgt
=
dobj
.
local_data
(
dobj
.
from_global_data
(
wgt
))
out
*=
wgt
**
power
fct
=
fct
**
power
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment