Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neural_filters
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
software
neural_filters
Commits
b00df262
Commit
b00df262
authored
6 years ago
by
M. François
Browse files
Options
Downloads
Patches
Plain Diff
Minor fix
parent
c4ad480f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
neural_filters/neural_filter.py
+1
-1
1 addition, 1 deletion
neural_filters/neural_filter.py
neural_filters/neural_filter_2CC.py
+1
-1
1 addition, 1 deletion
neural_filters/neural_filter_2CC.py
with
2 additions
and
2 deletions
neural_filters/neural_filter.py
+
1
−
1
View file @
b00df262
...
...
@@ -79,7 +79,7 @@ class NeuralFilter(torch.nn.Module):
if
self
.
hidden_size
!=
input_var
.
size
(
-
1
):
raise
RuntimeError
(
'
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
:
mini_batch
=
int
(
batch_sizes
[
0
])
...
...
This diff is collapsed.
Click to expand it.
neural_filters/neural_filter_2CC.py
+
1
−
1
View file @
b00df262
...
...
@@ -94,7 +94,7 @@ class NeuralFilter2CC(torch.nn.Module):
if
self
.
hidden_size
!=
input_var
.
size
(
-
1
):
raise
RuntimeError
(
'
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
:
mini_batch
=
int
(
batch_sizes
[
0
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment