Skip to content
GitLab
Menu
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
b54a15f4
Commit
b54a15f4
authored
Feb 20, 2017
by
Theo Steininger
Browse files
Fixed weight in nifty.Field.dot
parent
3e9552e7
Pipeline
#10278
passed with stages
in 29 minutes and 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
b54a15f4
...
...
@@ -582,9 +582,9 @@ class Field(Loggable, Versionable, object):
# Compute the dot respecting the fact of discrete/continous spaces
if
bare
:
y
=
self
.
weight
(
spaces
=
spaces
,
power
=-
1
)
else
:
y
=
self
else
:
y
=
self
.
weight
(
power
=
1
)
if
spaces
is
None
:
x_val
=
x
.
get_val
(
copy
=
False
)
...
...
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