Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Max Ehrlich
cdcnn
Commits
b36dfadd
Verified
Commit
b36dfadd
authored
Dec 05, 2018
by
Max Ehrlich
Browse files
Make sure conv weight is registered as a param
parent
81d5c18c
Changes
1
Hide whitespace changes
Inline
Side-by-side
jpeg_layers/convolution.py
View file @
b36dfadd
...
...
@@ -11,6 +11,8 @@ class Conv2d(torch.nn.modules.Module):
self
.
weight
=
conv_spatial
.
weight
self
.
padding
=
conv_spatial
.
padding
self
.
register_parameter
(
'weight'
,
self
.
weight
)
self
.
register_buffer
(
'J'
,
J
[
0
])
self
.
register_buffer
(
'J_i'
,
J
[
1
])
...
...
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