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
c14e91d9
Commit
c14e91d9
authored
May 11, 2017
by
Theo Steininger
Browse files
Fixed dtype casting in PowerSpace
parent
133952dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/power_space/power_space.py
View file @
c14e91d9
...
...
@@ -168,7 +168,7 @@ class PowerSpace(Space):
weight
=
self
.
rho
.
reshape
(
reshaper
)
if
power
!=
1
:
weight
=
weight
**
power
weight
=
weight
**
np
.
float
(
power
)
if
inplace
:
x
*=
weight
...
...
Write
Preview
Supports
Markdown
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