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
6e514762
Commit
6e514762
authored
Jun 19, 2018
by
Philipp Arras
Browse files
fixup! tweak imports
parent
bac34420
Pipeline
#31362
failed with stages
in 4 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/models/variable.py
View file @
6e514762
...
...
@@ -10,7 +10,7 @@ class Variable(Model):
super
(
Variable
,
self
).
__init__
(
position
)
self
.
_value
=
position
self
.
_gradient
=
ift
.
ScalingOperator
(
1.
,
position
.
domain
)
self
.
_gradient
=
ScalingOperator
(
1.
,
position
.
domain
)
def
at
(
self
,
position
):
return
self
.
__class__
(
position
)
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