Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
neural_filters
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
software
neural_filters
Commits
b00df262
Commit
b00df262
authored
Jun 27, 2018
by
M. François
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix
parent
c4ad480f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
neural_filters/neural_filter.py
neural_filters/neural_filter.py
+1
-1
neural_filters/neural_filter_2CC.py
neural_filters/neural_filter_2CC.py
+1
-1
No files found.
neural_filters/neural_filter.py
View file @
b00df262
...
@@ -79,7 +79,7 @@ class NeuralFilter(torch.nn.Module):
...
@@ -79,7 +79,7 @@ class NeuralFilter(torch.nn.Module):
if
self
.
hidden_size
!=
input_var
.
size
(
-
1
):
if
self
.
hidden_size
!=
input_var
.
size
(
-
1
):
raise
RuntimeError
(
raise
RuntimeError
(
'input.size(-1) must be equal to hidden_size. Expected {}, got {}'
.
format
(
'input.size(-1) must be equal to hidden_size. Expected {}, got {}'
.
format
(
self
.
input
_size
,
input_var
.
size
(
-
1
)))
self
.
hidden
_size
,
input_var
.
size
(
-
1
)))
if
is_input_packed
:
if
is_input_packed
:
mini_batch
=
int
(
batch_sizes
[
0
])
mini_batch
=
int
(
batch_sizes
[
0
])
...
...
neural_filters/neural_filter_2CC.py
View file @
b00df262
...
@@ -94,7 +94,7 @@ class NeuralFilter2CC(torch.nn.Module):
...
@@ -94,7 +94,7 @@ class NeuralFilter2CC(torch.nn.Module):
if
self
.
hidden_size
!=
input_var
.
size
(
-
1
):
if
self
.
hidden_size
!=
input_var
.
size
(
-
1
):
raise
RuntimeError
(
raise
RuntimeError
(
'input.size(-1) must be equal to hidden_size. Expected {}, got {}'
.
format
(
'input.size(-1) must be equal to hidden_size. Expected {}, got {}'
.
format
(
self
.
input
_size
,
input_var
.
size
(
-
1
)))
self
.
hidden
_size
,
input_var
.
size
(
-
1
)))
if
is_input_packed
:
if
is_input_packed
:
mini_batch
=
int
(
batch_sizes
[
0
])
mini_batch
=
int
(
batch_sizes
[
0
])
...
...
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